-
Notifications
You must be signed in to change notification settings - Fork 1
Export CM HealthCheck
This script is part 1 of a 2-part process for generating an audit report of a System Center Configuration Manager site environment. Export-CM-HealthCheck.ps1 is part 2. This script gathers data and creates a folder below the location where this script is executed from. The sub-folder tree will be in the format of "YYYY-MM-DD\server.domain.suffix". Another folder named "_Logs" will be created just below the execution path as well, and contains a copy of verbose output for diagnostics and troubleshooting.
- Extract Get-CM-Inventory.ps1, messages.xml and cmhealthcheck.xml into a folder.
- Open a PowerShell console using "Run as administrator"
- Run the script (examples shown below)
- This script is based on the awesome work of Rafael Perez (rflsystems.co.uk)
- Must be executed using an account which has FULL ADMINISTRATOR permissions to the SCCM hierarchy, the Windows Server host, and the SQL Server instance which supports the SCCM hierarchy.
- Requires PowerShell version 3 or later
- Works best when executed ON the SCCM Primary or CAS for a given hierarchy
- Has been tested on SCCM 2012 SP1, 2012 R2, 1511, 1602, 1606, 1610, 1702 and 1704
- Get-CM-Inventory.ps1 -SmsProvider cm01.contoso.com
- Get-CM-Inventory.ps1 -SmsProvider cm01.contoso.com -Overwrite -Verbose
- Get-CM-Inventory.ps1 -SmsProvider cm01.contoso.com -NoHotFix -Verbose
- $SiteServers | Get-CM-Inventory.ps1
Version 0.1 - Raphael Perez - 24/10/2013
- Initial Script
Version 0.2 - Raphael Perez - 05/11/2014
- Added Get-MessageInformation and Get-MessageSolution
Version 0.3 - Raphael Perez - 22/06/2015
- Added ReportSection
Version 0.4 - Raphael Perez - 04/02/2016
- Fixed issue when executing on a Windows 10 machine
Version 0.5 - David Stein (4/10/2017)
- Added support for MS Word 2016
- Changed "cm12R2healthCheck.xml" to "cmhealthcheck.xml"
- Detailed is now a [switch] not a [boolean]
- Added params for CoverPage, Author, CustomerName, etc.
- Bugfixes for Word document builtin properties updates
- Minor bugfixes throughout
Version 0.6 - David Stein (4/18/2017)
- Set table styles to be consistent
Version 0.6.1 - David Stein (4/23/2017)
- Added CmdletBinding() and some other additions
Version 0.6.2 - David Stein (5/16/2017)
- Minor formatting updates