Private/Helper/Test-MSGWebUri.ps1
function Test-MSGWebUri { [CmdletBinding()] [OutputType([bool])] param ( [Parameter(Mandatory = $true)] [string] $address ) process { $uri = $address -as [System.URI] return ($null -ne $uri.AbsoluteURI -and $uri.Scheme -match '[http|https]') } } |