function Get-WebServerInformation{<#.NOTESAuthor: Will Steele.EXAMPLEGet-WebServerInformation -Uri http://www.microsoft.com -AllIsMutuallyAuthenticated : FalseCookies : {}Headers : {Accept-Ranges, Content-Length, Cache-Control, Content-Type...}SupportsHeaders : TrueContentLength : 1020ContentEncoding :ContentType : text/htmlCharacterSet : ISO-8859-1Server : Microsoft-IIS/7.5LastModified : 3/16/2009 3:35:26 PMStatusCode : OKStatusDescription : OKProtocolVersion : 1.1ResponseUri : http://www.microsoft.com/Method : GETIsFromCache : False.EXAMPLEGet-WebServerInformation -Uri http://www.google.com -CharacterSetISO-8859-1.EXAMPLEGet-WebServerInformation -Uri http://www.kofax.com -StatusCode -CharacterSetISO-8859-1OK.PARAMETER -UriA required parameter indicating the URI of the remote server.#>[CmdletBinding()]param([Parameter(Mandatory = $true,Position = 1,ValueFromPipeline = $true)][ValidateScript({Test-Uri -Uri $_})][String]$Uri,[Switch]$All = $false,[Switch]$CharacterSet = $false,[Switch]$ContentEncoding = $false,[Switch]$ContentLength = $false,[Switch]$ContentType = $false,[Switch]$Cookies = $false,[Switch]$Headers = $false,[Switch]$IsFromCache = $false,[Switch]$IsMutuallyAuthenticated = $false,[Switch]$LastModified = $false,[Switch]$Method = $false,[Switch]$ProtocolVersion = $false,[Switch
PowerShell v3 Function Get WebServerInformation
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar