This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Creates an HTML report of the state of Windows Services. | |
.DESCRIPTION | |
Creates an HTML report of the state of Windows Services. Styles services in | |
unexpected states. | |
.PARAMETER ReportFile | |
The report file to create. | |
.PARAMETER Title | |
The Title for the report. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Checks for the expiry of the certificate for a web site. | |
.DESCRIPTION | |
Returns information for certificates expiring within the number of days specified. | |
.PARAMETER Uri | |
A uri or list of uris to check. | |
.PARAMETER Days | |
The number of days ahead to check for expiry. Defaults to 730 days (2 years). | |
.PARAMETER Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Format-XMLText { | |
Param( | |
[Parameter(ValueFromPipeline=$true,Mandatory=$true)] | |
[xml[]] | |
$xmlText | |
) | |
Process { | |
# Use a StringWriter, an XMLWriter and an XMLWriterSettings to format XML | |
$stringWriter = New-Object System.IO.StringWriter | |
$stringWriterSettings = New-Object System.Xml.XmlWriterSettings |