CMHealthCheck

ConfigMgr health-check reporting PowerShell module

PowerShell Platform License

CMHealthCheck helps you collect Configuration Manager health data and generate report-ready output for operational reviews, troubleshooting, and periodic health checks.

Overview

The module is built around a two-phase workflow:

  1. Data collection from ConfigMgr, SQL, WMI/CIM, registry, and service layers
  2. Report generation (Word/HTML) with summary and detailed sections

This approach lets you collect once and render reports multiple ways.

Features

Requirements

Installation

Install-Module CMHealthCheck

From GitHub

  1. Clone the repository:
git clone https://github.com/ds0934/CMHealthCheck.git
cd CMHealthCheck
  1. Import the module:
Import-Module ./CMHealthCheck.psd1

Usage

Import the module and inspect available commands:

Import-Module CMHealthCheck
Get-Command -Module CMHealthCheck
Get-Help Invoke-CMHealthCheck -Detailed

Example end-to-end flow:

# Run collection and generate outputs from a config file
Invoke-CMHealthCheck -ConfigFile .\Config.xml -ReportFile .\CMHealthReport.docx

# Collect health-check data
Get-CMHealthCheck -ConfigFile .\Config.xml -OutputPath .\Output

# Summarize prior output
Get-CMHealthCheckSummary -Path .\Output

# Export report content
Export-CMHealthReport -Path .\Output -ReportFile .\CMHealthReport.docx

Function Reference

Function Description Documentation
Invoke-CMHealthCheck End-to-end workflow for collection and reporting Docs/Invoke-CMHealthCheck.md
Get-CMHealthCheck Collect health-check data from configured targets Docs/Get-CMHealthCheck.md
Get-CMHealthCheckSummary Produce summarized health-check output Docs/Get-CMHealthCheckSummary.md
Export-CMHealthReport Export collected data into report output Docs/Export-CMHealthReport.md

Compatibility Notes

Tested environments include:

Samples and Docs

Contributing

Contributions are welcome. You can help by:

Please open an issue or pull request in this repository.

Removal

To remove the module:

Remove-Module CMHealthCheck -ErrorAction SilentlyContinue
Uninstall-Module CMHealthCheck

License

This project is licensed under the MIT License. See LICENSE for details.