Skip to content

hmohamed01/MECM-Expert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MECM Expert

License: MIT Platform Claude Code

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.

What is this?

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.

Capabilities

  • 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

Bundled Scripts

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

Script Usage Examples

# 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.ps1 deliberately avoids winmgmt /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.

Installation

From .skill package (Recommended)

macOS/Linux:

unzip mecm-expert.skill -d ~/.claude/skills/mecm-expert

Windows (PowerShell):

Expand-Archive mecm-expert.skill -DestinationPath "$env:USERPROFILE\.claude\skills\mecm-expert"

From source

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\"

Usage

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?"

Documentation References

This skill includes 130+ inline reference URLs to official Microsoft documentation, ensuring accuracy and enabling deep-dives into specific topics.

Live Documentation Fetching

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.

Key Reference Areas

Requirements

  • Claude Code CLI
  • No additional dependencies

License

MIT

About

Claude Code skill for Microsoft Endpoint Configuration Manager (MECM/SCCM) expertise

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors