Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Function GetSiteName {
Param([string]$hostname, [string]$port)
return $("{0}{1}" -f $hostname, $port);
}
Function GetSiteUrl {
Param([string]$hostname, [string]$port)
return ("http://{0}:{1}" -f $hostname, $port);
}
Function ParseResponse {
Param([object]$response)
return ($response.Content.Substring($response.Content.IndexOf("{")) | ConvertFrom-Json)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.