added new function Get-AbsoluteURI
This commit is contained in:
@@ -789,5 +789,11 @@ Function ZeroPad-Decimal {
|
||||
Return $splitNumbers[0] + '.' + $paddedDecimal
|
||||
}
|
||||
|
||||
# Function to follow a URL and return the absolute URI of the result (whether redirected or not)
|
||||
Function Get-AbsoluteURI {
|
||||
param([string]$URL)
|
||||
Return [System.Net.HttpWebRequest]::Create($URL).GetResponse().ResponseUri.AbsoluteUri
|
||||
}
|
||||
|
||||
Setup-MSPDirectories
|
||||
Setup-LogFile
|
||||
Reference in New Issue
Block a user