Generate Health Information from a Configuration Manager site
Invoke-CMHealthCheck [[-SmsProvider] <String>] [[-CustomerName] <String>] [[-AuthorName] <String>]
[[-CopyrightName] <String>] [[-DataFolder] <String>] [[-PublishFolder] <String>] [-OpenBrowser] [-OverWrite]
[-NoHotfix] [-AutoConfig] [-Detailed] [[-Template] <String>] [[-ReportType] <String>]
[[-NumberOfDays] <Int32>] [-Healthcheckdebug] [[-Healthcheckfilename] <String>] [[-MessagesFilename] <String>]
[<CommonParameters>]
Generate Health Information from a Configuration Manager site
Invoke-CMHealthCheck -SmsProvider "cm01.contoso.local" -CustomerName "Contoso" -AuthorName "Skatter Brainz" -CopyrightName "SkatterCorp"
Standard/default settings to collect data, and generate HTML report
Invoke-CMHealthCheck -SmsProvider "cm01.contoso.local" -CustomerName "Contoso" -AuthorName "Skatter Brainz" -CopyrightName "SkatterCorp" -Overwrite
Replaces an existing (previous) output from the same date
Invoke-CMHealthCheck -SmsProvider "cm01.contoso.local" -CustomerName "Contoso" -AuthorName "Skatter Brainz" -CopyrightName "SkatterCorp" -OpenBrowser
Opens the HTML report in the default web browser, upon completion
Invoke-CMHealthCheck -SmsProvider "cm01.contoso.local" -CustomerName "Contoso" -AuthorName "Skatter Brainz" -CopyrightName "SkatterCorp" -Detailed
Generates additional detail in the output report file
Invoke-CMHealthCheck -SmsProvider "cm01.contoso.local" -CustomerName "Contoso" -AuthorName "Skatter Brainz" -CopyrightName "SkatterCorp" -AutoConfig "config.txt"
Loads reporting parameters from custom text file
Invoke-CMHealthCheck -SmsProvider "cm01.contoso.local" -CustomerName "Contoso" -AuthorName "Skatter Brainz" -CopyrightName "SkatterCorp" -NoHotFix
Skips inventory of installed operating system hotfixes
FQDN of the SMS Provider host in the Configuration Manager site, default is localhost
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: "$(($env:COMPUTERNAME, $env:USERDNSDOMAIN) -join '.')"
Accept pipeline input: False
Accept wildcard characters: False
Name of customer (default = “Customer Name”), or use AutoConfig file
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: Customer Name
Accept pipeline input: False
Accept wildcard characters: False
Report Author name (default = “Your Name”), or use AutoConfig file
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: Your Name
Accept pipeline input: False
Accept wildcard characters: False
Text to use for copyright footer string (default = “Your Company Name”)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: Your Company Name
Accept pipeline input: False
Accept wildcard characters: False
Path to output data for storing files during collection phase, default is “My Documents”
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: "$([System.Environment]::GetFolderPath('Personal'))"
Accept pipeline input: False
Accept wildcard characters: False
Path to save the HTML report file, default is “My Documents”
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: "$([System.Environment]::GetFolderPath('Personal'))"
Accept pipeline input: False
Accept wildcard characters: False
Open HTML report in default web browser upon completion
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Overwrite existing output folder if found. Folder is named by datestamp, so this only applies when running repeatedly on the same date
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Skip inventory of installed hotfixes
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Load parameters from configuration file Example: ``` Sample AutoConfig file cmhealthconfig.txt… AuthorName=John Wick CopyrightName=Retirement Specialists Theme=Ocean Detailed=True TableRowStyle=Solid CssFilename=c:\docs\wickrocks.css ImageFile=c:\docs\bodybags.png CoverPage= Template= HealthcheckFilename= MessagesFilename= HealthcheckDebug=False Overwrite=True ```
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Display additional details (verbose)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 8
Default value: HTML
Accept pipeline input: False
Accept wildcard characters: False
Number of days to go back for alerts in logs (default = 7)
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 9
Default value: 7
Accept pipeline input: False
Accept wildcard characters: False
Enable verbose output (or use -Verbose)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Name of configuration file (default is .\assets\cmhealthcheck.xml)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 10
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Status and error message lookup table (default = “.\assets\messages.xml”) The file can be local, UNC or URI sourced as well
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 11
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
New function for 1.0.11 - 10/2019
https://github.com/Skatterbrainz/CMHealthCheck/blob/master/Docs/Invoke-CMHealthCheck.md