Get-PortAndProtocolFromUrl.ps1

by Dec 12, 2011

< #   .SYNOPSIS      This script strips out a port and protocol number from a URL   .DESCRIPTION      This script creates a regular expression reged then uses it to       match against the URL to get the protocol and port. This is a      re-write of the MSDN sample.  .NOTES      File Name  : Get-PortAndProtocolFromUrl.ps1      Author     : Thomas Lee – tfl @psp .co.uk      Requires   : PowerShell Version… Read the full text.