| Title | Author | Age | Description |
|---|---|---|---|
| Import-Iis-Log | dezaron | Wed, 22 Feb 2012 19:28:35 | Read in an IIS *log file saved in format W3C. The Import-Iis-Log cmdlet provides a way for you to read in data from an IIS *log file (saved in format W3C) and then display that data in tabular format within the Windows PowerShell console. Parameters: -Path (string, required, position = 0, value from pipeline, not null, not empty) Specifies the path to the IIS *.log file to import. You can also pipe a path to Import-Iss-Log. -Delimiter (string, position = 1, not null, not empty) Specified the delimiter that separated the property values in the IIS *log file. The default value is a spacebar. -Encoding (Microsoft.PowerShell.Commands.FileSystemCmdletProviderEncoding) The character encoding for the IIS *.log file. The default value is the UTF8. The cmdlet outputs in the pipeline objects with following properties: DateTime (System.DateTime) Combined “date” and “time” values of a log. ClientHost (System.Net.IpAddress) “c-ip” value of a log. UserName (string or $null for anonymous user) “cs-username” value of a log. Service (string) “s-sitename” value of a log. Machine (string) “s-computername” value of a log. ServerIp (System.Net.IpAddress) “s-ip” value of a log. ServerPort (int) “s-port” value of a log. Method (string) “cs-method” value of a log. ScriptPath (string) “cs-uri-stem” value of a log, decoded with System.Web.HttpUtility.UrlDecode. QueryString (string or $null for HTTP requests without query string) “cs-uri-query” value of a log, decoded with System.Web.HttpUtility.UrlDecode. ServiceStatus (int) “sc-status” value of a log. ServiceSubStatus (int) “sc-substatus” value of a log. Win32Status (int) “sc-win32-status” value of a log. BytesSent (System.UInt64) “sc-bytes” value of a log. BytesRecived (System.UInt64) “cs-bytes” value of a log. ProcessingTime (int) “time-taken” value of a log. ProtocolVersion (string) “cs-version” value of a log. Host (string of $null for HTTP requests without Host header) “cs-host” value of a log. UserAgent (string or $null for request without an User-Agent header) “cs(User-Agent)” value of a log. Cookie (string or $null for requests without a cookie) “cs(Cookie)” value of a log. Referer (string or $null for requests without a referer) “cs(Referer)” value of a log, decoded with System.Web.HttpUtility.UrlDecode. |
| Start-RDP | dezaron | Mon, 20 Feb 2012 22:08:30 | Function/script to launch Remote Desktop sessions from command line, RDP file or pipeline using Terminal Services Client. Uncomment the function code to make a global function. |
PowerShell Code Repository