A Claude Code skill that provides comprehensive Microsoft Endpoint Configuration Manager (MECM/ConfigMgr/SCCM) administration expertise.
Note: This skill works with both Claude Code CLI and claude.ai. For claude.ai, simply zip this repository and upload it as a skill in the capabilities section of your settings.
This is a Claude Code skill that enhances Claude's ability to assist with enterprise MECM administration tasks. When installed, Claude gains deep knowledge of ConfigMgr concepts, PowerShell automation, and troubleshooting procedures.
- Software Update Management - WSUS configuration, Automatic Deployment Rules (ADR), patch compliance
- Application Deployment - Packaging, detection methods, deployment types, supersedence
- Operating System Deployment (OSD) - Task sequences, boot images, driver management
- Collection Management - WQL queries, membership rules, evaluation optimization
- PowerShell Automation - ConfigurationManager module, bulk operations, scripting
- Client Troubleshooting - Log analysis, health checks, common issue resolution
- Reporting & SQL Views - Comprehensive SQL Server views reference (20+ view categories), CMPivot, custom SSRS reports, compliance reporting
- SQL Server Best Practices - MaxDOP, memory, tempdb, maintenance plans, RCSI, Always On AG tuning for MECM
- Live Documentation Fetching - Automatically retrieves current Microsoft documentation for accurate cmdlet syntax, troubleshooting steps, and version-specific features
- Bundled PowerShell Scripts - Ready-to-run health check and safe WMI repair scripts with CMTrace-compatible logging
Production-ready PowerShell scripts in the scripts/ directory. All scripts generate CMTrace-compatible log files for color-coded review in CMTrace.
| Script | Purpose | Default Log |
|---|---|---|
Import-CMModule.ps1 |
Fault-tolerant loader for the ConfigurationManager PowerShell module | — |
Invoke-CMClientHealthCheck.ps1 |
Read-only ConfigMgr client health check: services, WMI, policy, inventory, cache, MP connectivity, disk, pending reboot | C:\Windows\CCM\Logs\ClientHealthCheck.log |
Repair-WMISafely.ps1 |
Non-destructive WMI repair (uses /salvagerepository, not /resetrepository), re-registers WMI DLLs, recompiles MOFs |
C:\Windows\Logs\WMIRepair.log |
Invoke-CMServerHealthCheck.ps1 |
Read-only site server health check: SMS services, SMS Provider, component status, inbox backlogs, disk space, SQL connectivity, event log errors | C:\Windows\Logs\CMServerHealthCheck.log |
# Client health check (run on a client)
.\scripts\Invoke-CMClientHealthCheck.ps1
# Safe WMI repair (run as Administrator)
.\scripts\Repair-WMISafely.ps1
# Server health check (run on the site server)
.\scripts\Invoke-CMServerHealthCheck.ps1 -SiteCode "PS1"WMI repair safety note:
Repair-WMISafely.ps1deliberately avoidswinmgmt /resetrepository, which rebuilds the WMI repository from scratch and breaks ConfigMgr, SCOM, and other WMI-dependent agents. Use a full rebuild only as a last resort.
macOS/Linux:
unzip mecm-expert.skill -d ~/.claude/skills/mecm-expertWindows (PowerShell):
Expand-Archive mecm-expert.skill -DestinationPath "$env:USERPROFILE\.claude\skills\mecm-expert"macOS/Linux:
mkdir -p ~/.claude/skills/mecm-expert && cp SKILL.md ~/.claude/skills/mecm-expert/Windows (PowerShell):
mkdir "$env:USERPROFILE\.claude\skills\mecm-expert" -Force; cp SKILL.md "$env:USERPROFILE\.claude\skills\mecm-expert\"Once installed, Claude Code will automatically use this skill when you ask about MECM/ConfigMgr topics. Example prompts:
- "Help me create a WQL query for all Windows 11 devices"
- "What's the best way to troubleshoot a failing task sequence?"
- "Create an ADR for monthly security updates"
- "Why is my ConfigMgr client not reporting?"
- "Write a SQL query to show software update compliance by collection"
- "Which SQL views should I use to build a hardware inventory report?"
This skill includes 130+ inline reference URLs to official Microsoft documentation, ensuring accuracy and enabling deep-dives into specific topics.
Claude will automatically fetch live content from Microsoft Learn when you ask about:
- PowerShell cmdlets - Gets current syntax, parameters, and examples
- Troubleshooting - Retrieves latest resolution steps for errors
- Version-specific features - Confirms feature availability in your ConfigMgr version
- SQL view schemas - Fetches accurate column names and join relationships
This ensures responses reflect the most current Microsoft documentation rather than potentially outdated information.
- Configuration Manager Documentation
- SQL Server Views Reference - 20+ view categories with sample queries
- PowerShell Cmdlet Reference
- Troubleshooting Guide
- Log Files Reference
- Claude Code CLI
- No additional dependencies
MIT