
powershell-master
Expert PowerShell guidance and automation for scripts, modules, CI/CD, and cloud management.
- version
- 2.0.6
- GitHub stars
- 62
What it does
- Adds 6 commands (
/ps-analyze,/ps-ci,/ps-migrate,/ps-module,/ps-secure,/ps-test) and apowershell-expertagent for scripting help - Covers 2025 changes: PowerShell 7.5 and 7.6 preview features, Windows PowerShell 5.1 deprecation, and Az 14.x breaking changes
- Includes skills for SecretManagement, JEA, WDAC, and shell detection between PowerShell and Git Bash on Windows
- Designed for developers automating Azure, AWS, and Microsoft 365 across Windows, Linux, and macOS
Complete PowerShell expertise across Windows/Linux/macOS. PROACTIVELY activate for: (1) any PowerShell task (scripts/modules/cmdlets), (2) CI/CD automation (GitHub Actions, Azure DevOps), (3) cross-platform scripting, (4) module management (PSGallery), (5) Azure/AWS/M365 automation, (6) debugging and optimization, (7) security best practices. Provides: PowerShell 7+ features, Az/Microsoft.Graph/PnP/AWS Tools patterns, PSGallery integration, CI/CD pipeline templates.
Add marketplace
/plugin marketplace add JosiahSiegel/claude-plugin-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install powershell-master@claude-plugin-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourcePowerShell 2025 Breaking Changes & Migrations
Critical changes, deprecations, and migration paths for PowerShell in 2025.
PowerShell 2.0 Removal (August-September 2025)
What's Removed
PowerShell 2.0 has been completely removed from:
- Windows 11 version 24H2 (August 2025)
- Windows Server 2025 (September 2025)
Why: Security improvements, reduced attack surface, legacy code cleanup
Migration Path
# Check if PowerShell 2.0 is installed
Get-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root
# If you still need PowerShell 2.0 (NOT RECOMMENDED)
# - Use older Windows versions
# - Use Windows containers with older base images
# - Upgrade scripts to PowerShell 5.1 or 7+
# Recommended: Migrate to PowerShell 7.5+
winget install Microsoft.PowerShell
Action Required: Audit all scripts and remove -Version 2.0 parameters from any PowerShell invocations.
MSOnline & AzureAD Module Retirement
Retirement Timeline
| Module | Stop Working | Retirement Complete |
|---|---|---|
| MSOnline | Late May 2025 | May 31, 2025 |
| AzureAD | March 30, 2025 | After July 1, 2025 |
Critical: These modules will stop functioning - not just deprecated, but completely non-functional.
Migration Path
From MSOnline/AzureAD to Microsoft.Graph:
# OLD (MSOnline) - STOPS WORKING MAY 2025
Connect-MsolService
Get-MsolUser
Set-MsolUser -UserPrincipalName "user@domain.com" -UsageLocation "US"
# NEW (Microsoft.Graph 2.32.0)
Connect-MgGraph -Scopes "User.ReadWrite.All"
Get-MgUser
Update-MgUser -UserId "user@domain.com" -UsageLocation "US"
# OLD (AzureAD) - STOPS WORKING MARCH 2025
Connect-AzureAD
Get-AzureADUser
New-AzureADUser -DisplayName "John Doe" -UserPrincipalName "john@domain.com"
# NEW (Microsoft.Graph 2.32.0)
Connect-MgGraph -Scopes "User.ReadWrite.All"
Get-MgUser
New-MgUser -DisplayName "John Doe" -UserPrincipalName "john@domain.com"
Alternative: Use Microsoft Entra PowerShell module (successor to AzureAD)
Install-Module -Name Microsoft.Graph.Entra -Scope CurrentUser
Connect-Entra
Get-EntraUser
Common Command Mappings
| MSOnline/AzureAD | Microsoft.Graph | Notes |
|---|---|---|
Get-MsolUser / Get-AzureADUser | Get-MgUser | Requires User.Read.All scope |
Get-MsolGroup / Get-AzureADGroup | Get-MgGroup | Requires Group.Read.All scope |
Get-MsolDevice / Get-AzureADDevice | Get-MgDevice | Requires Device.Read.All scope |
Connect-MsolService / Connect-AzureAD | Connect-MgGraph | Scope-based permissions |
WMIC Removal (Windows 11 25H2)
What's Removed
Windows Management Instrumentation Command-line (WMIC) tool removed after upgrading to Windows 11 25H2+.
Migration Path
From WMIC to PowerShell WMI/CIM:
# OLD (WMIC) - REMOVED
wmic process list brief
wmic os get caption
# NEW (PowerShell CIM)
Get-CimInstance -ClassName Win32_Process | Select-Object Name, ProcessId, CommandLine
Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object Caption, Version
# For detailed process info
Get-Process | Format-Table Name, Id, CPU, WorkingSet -AutoSize
# For system info
Get-ComputerInfo | Select-Object WindowsProductName, WindowsVersion
PowerShellGet → PSResourceGet Migration
Modern Package Management (2025)
PSResourceGet is the official successor to PowerShellGet (2x faster, actively developed).
# Install PSResourceGet (ships with PowerShell 7.4+)
Install-Module -Name Microsoft.PowerShell.PSResourceGet -Force
# New commands (PSResourceGet)
Install-PSResource -Name Az -Scope CurrentUser # Replaces Install-Module
Find-PSResource -Name "*Azure*" # Replaces Find-Module
Update-PSResource -Name Az # Replaces Update-Module
Get-InstalledPSResource # Replaces Get-InstalledModule
# Compatibility layer available for legacy scripts
# Your old Install-Module commands still work but call PSResourceGet internally
Performance Comparison:
- PowerShellGet: 10-15 seconds to install module
- PSResourceGet: 5-7 seconds to install module (2x faster)
Test-Json Schema Changes
Breaking Change (PowerShell 7.4+)
Test-Json now uses JsonSchema.NET instead of Newtonsoft.Json.Schema.
Impact: No longer supports Draft 4 JSON schemas.
# OLD (Draft 4 schema) - NO LONGER SUPPORTED
$schema = @"
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object"
}
"@
Test-Json -Json $json -Schema $schema # FAILS in PowerShell 7.4+
# NEW (Draft 6+ schema) - SUPPORTED
$schema = @"
{
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object"
}
"@
Test-Json -Json $json -Schema $schema # WORKS
#Requires -PSSnapin Removed
Breaking Change (PowerShell 7.4+)
All code related to #Requires -PSSnapin has been removed.
# OLD (PowerShell 5.1 and earlier)
#Requires -PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn
# NEW (Use modules instead)
#Requires -Modules ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline
Security Hardening (2025 Standards)
Just Enough Administration (JEA)
JEA is now a security requirement for production environments:
# Create JEA session configuration
New-PSSessionConfigurationFile -SessionType RestrictedRemoteServer `
-Path "C:\JEA\RestrictedAdmin.pssc" `
-VisibleCmdlets @{
Name = 'Restart-Service'
Parameters = @{ Name = 'Name'; ValidateSet = 'Spooler' }
} `
-LanguageMode NoLanguage
# Register JEA endpoint
Register-PSSessionConfiguration -Name RestrictedAdmin `
-Path "C:\JEA\RestrictedAdmin.pssc" `
-Force
# Connect with limited privileges
Enter-PSSession -ComputerName Server01 -ConfigurationName RestrictedAdmin
Windows Defender Application Control (WDAC)
WDAC replaces AppLocker for PowerShell script control:
# Create WDAC policy for PowerShell scripts
New-CIPolicy -FilePath "C:\WDAC\PowerShellPolicy.xml" `
-ScanPath "C:\Scripts" `
-Level FilePublisher `
-Fallback Hash
# Convert to binary and deploy
ConvertFrom-CIPolicy -XmlFilePath "C:\WDAC\PowerShellPolicy.xml" `
-BinaryFilePath "C:\Windows\System32\CodeIntegrity\SIPolicy.p7b"
Constrained Language Mode
Constrained Language Mode is now recommended for all users without admin privileges:
# Check current language mode
$ExecutionContext.SessionState.LanguageMode
# Output: FullLanguage (admin) or ConstrainedLanguage (standard user)
# Set system-wide constrained language mode via Group Policy or Environment Variable
# Set HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\__PSLockdownPolicy = 4
PowerShell 7.6 Preview Features
Current Status (October 2025)
PowerShell 7.6.0 Preview 5 available (built on .NET 9.0.101)
New Features:
- PSRedirectToVariable: Allow redirecting to a variable
- Module Rename: ThreadJob → Microsoft.PowerShell.ThreadJob
- PSResourceGet 1.1.0: Improved performance and Azure Artifacts support
# Check PowerShell version
$PSVersionTable.PSVersion
# 7.5.4 (stable) or 7.6.0-preview.5
# .NET version
[System.Runtime.InteropServices.RuntimeInformation]::FrameworkDescription
# .NET 9.0.101
Migration Checklist
Immediate Actions Required (2025)
- Audit MSOnline/AzureAD usage - Migrate to Microsoft.Graph 2.32.0 before May 2025
- Remove PowerShell 2.0 references - Upgrade to PowerShell 7.5+
- Replace WMIC commands - Use Get-CimInstance/Get-Process
- Update JSON schemas - Migrate Draft 4 to Draft 6+
- Remove PSSnapin requirements - Convert to modules
- Adopt PSResourceGet - Faster, modern package management
- Implement JEA - Role-based access control for production
- Enable WDAC - Application control for PowerShell scripts
- Test Constrained Language Mode - For non-admin users
Recommended Actions
- Upgrade to PowerShell 7.5.4 - Latest stable with .NET 9
- Adopt Az 14.5.0 - Latest Azure module with zone redundancy
- Use Microsoft.Graph 2.32.0 - Actively maintained Graph SDK
- Enable Script Block Logging - Security auditing
- Implement Code Signing - For production scripts
- Use Azure Key Vault - For credential management
Testing Migration
# Test for deprecated module usage
Get-Module MSOnline, AzureAD -ListAvailable
# If found, plan migration immediately
# Test for PowerShell 2.0 dependencies
Get-Content "script.ps1" | Select-String -Pattern "powershell.exe -Version 2"
# If found, remove version parameter
# Test for WMIC usage
Get-ChildItem -Path "C:\Scripts" -Recurse -Filter "*.ps1" |
Select-String -Pattern "wmic" |
Select-Object Path, Line
# Verify PowerShell version compatibility
#Requires -Version 7.0
Test-Path $PSCommandPath # Ensures script is PowerShell 7+
Resources
- PowerShell 7.5 Release Notes
- MSOnline/AzureAD Retirement Info
- PSResourceGet Documentation
- JEA Documentation
- WDAC Documentation
Last Updated: October 2025
Readme
PowerShell Master Plugin
Complete PowerShell expertise across all platforms (Windows, Linux, macOS) for scripting, automation, CI/CD, and cloud management.
🎯 What This Plugin Does
This plugin makes Claude a PowerShell expert with comprehensive 2025 knowledge:
- PowerShell 7.5.4 / 7.6 Preview - Latest features, .NET 9 performance, ConvertTo/From-CliXml
- 2025 Breaking Changes - MSOnline/AzureAD retirement, PowerShell 2.0 removal, WMIC replacement
- Modern Security - JEA (Just Enough Administration), WDAC, Constrained Language Mode
- PSResourceGet - Modern package manager (2x faster than PowerShellGet)
- Latest Modules - Az 14.5.0, Microsoft.Graph 2.32.0, PnP, AWS Tools, Pester
- Migration Guidance - From deprecated modules to current 2025 standards
- Cross-Platform - Windows, Linux, macOS with .NET 9 performance
- CI/CD Integration - GitHub Actions, Azure DevOps, Bitbucket Pipelines
📦 Installation
Via GitHub Marketplace (Recommended)
/plugin marketplace add JosiahSiegel/claude-plugin-marketplace
/plugin install powershell-master@claude-plugin-marketplace
Local Installation (Mac/Linux)
⚠️ Windows users: Use the GitHub marketplace method instead.
# Extract to plugins directory
unzip powershell-master.zip -d ~/.local/share/claude/plugins/
🚀 Features
Comprehensive PowerShell Knowledge
This plugin includes expert knowledge of:
-
PowerShell Syntax & Cmdlets
- Full cmdlet reference
- Operators and control flow
- Functions and pipelines
- Error handling patterns
-
Cross-Platform Best Practices
- Path handling across OS
- Platform detection
- Text encoding (UTF-8)
- Case sensitivity awareness
- NEW: Shell detection (PowerShell vs Git Bash/MSYS2)
- NEW: Cross-shell compatibility guidance
-
Module Ecosystem
- Azure (Az): Complete Azure resource management
- Microsoft.Graph: Microsoft 365, Teams, SharePoint
- PnP.PowerShell: SharePoint Online automation
- AWS.Tools: AWS resource management
- Pester: Testing framework
- PSScriptAnalyzer: Code quality analysis
-
CI/CD Integration
- GitHub Actions workflows
- Azure DevOps Pipelines
- Bitbucket Pipelines
- Cross-platform testing
- Artifact publishing
-
Security & Performance
- Credential management
- Input validation
- Performance optimization
- Parallel execution (PS 7+)
- Code signing
📋 Available Commands
/pwsh-script
Create or review PowerShell scripts with best practices, error handling, and cross-platform compatibility.
Example:
/pwsh-script to backup files with retention policy
/pwsh-module
Find, install, and manage PowerShell modules from PSGallery or other sources.
Example:
/pwsh-module to work with Azure VMs
/pwsh-cicd
Set up PowerShell in CI/CD pipelines (GitHub Actions, Azure DevOps, Bitbucket).
Example:
/pwsh-cicd for cross-platform testing
/pwsh-azure
Automate Azure resources using the Az PowerShell module.
Example:
/pwsh-azure to deploy virtual machines
/pwsh-performance (NEW in v1.4.0)
Optimize PowerShell scripts for performance with parallel processing, efficient filtering, and .NET 9 enhancements.
Example:
/pwsh-performance to speed up file processing script
🤖 PowerShell Expert Agent
The plugin includes a specialized powershell-expert agent with comprehensive PowerShell knowledge.
Automatically activates for:
- Any PowerShell script creation or review
- Module discovery and management
- CI/CD pipeline setup
- Cloud automation (Azure/AWS/M365)
- Script debugging and optimization
Invoke explicitly via Task tool:
Use powershell-expert agent to create Azure automation script
💡 Usage Examples
Example 1: Create Cross-Platform Script
Request: "Create a script to find large files"
Result: Production-ready script with:
- Cross-platform path handling
- Parameter validation
- Error handling
- Comment-based help
- Performance optimization
Example 2: Azure Automation
Request: "Show me how to manage Azure VMs with PowerShell"
Result: Complete guide including:
- Az module installation
- Authentication methods
- VM operations (start/stop/create)
- Service principal setup for automation
- CI/CD integration examples
Example 3: CI/CD Setup
Request: "Set up PowerShell testing in GitHub Actions"
Result: Full workflow with:
- Multi-platform matrix
- Pester test execution
- PSScriptAnalyzer code quality checks
- Test result publishing
- Module caching for speed
Example 4: Module Discovery
Request: "I need to work with Microsoft Teams"
Result:
- Relevant modules identified (Microsoft.Graph)
- Installation instructions
- Common operations examples
- Authentication guidance
- Best practices for automation
🌐 Platform Support
- ✅ Windows: PowerShell 7+ and Windows PowerShell 5.1
- ✅ Linux: PowerShell 7+ (Ubuntu, RHEL, Debian, Alpine)
- ✅ macOS: PowerShell 7+ (Intel and Apple Silicon)
All examples and scripts are tested for cross-platform compatibility.
🔧 Common Use Cases
Script Development
- Creating new PowerShell scripts
- Converting Windows PowerShell to PowerShell 7+
- Adding error handling and logging
- Performance optimization
- Code review and refactoring
Module Management
- Finding modules on PSGallery
- Installing and updating modules
- Resolving version conflicts
- Creating custom modules
- Offline module installation
Cloud Automation
- Azure resource deployment and management
- AWS infrastructure automation
- Microsoft 365 administration
- Multi-cloud orchestration
- Cost management and reporting
CI/CD
- GitHub Actions workflows
- Azure DevOps Pipelines
- Bitbucket Pipelines
- Cross-platform testing
- Automated deployments
DevOps
- Infrastructure as Code
- Configuration management
- Log analysis and monitoring
- Backup and recovery automation
- Security compliance checks
📚 Knowledge Base
The plugin includes comprehensive 2025 documentation on:
- PowerShell 7.5.4 / 7.6 features - ConvertTo/From-CliXml, Test-Path time filtering, .NET 9 performance
- 2025 Breaking Changes - MSOnline/AzureAD retirement (March-May 2025), PowerShell 2.0 removal, WMIC replacement
- Migration Paths - Detailed guides for deprecated modules to current standards
- Modern Security - SecretManagement, JEA, WDAC, Constrained Language Mode, Script Block Logging
- PSResourceGet 1.1.1 - Modern package management (2x faster), Azure Artifacts integration, SecretManagement
- Performance Optimization - ForEach-Object -Parallel, efficient filtering, .NET 9 enhancements
- Latest Modules - Az 14.5.0 (zone redundancy, symbolic links), Microsoft.Graph 2.32.0
- CI/CD Patterns - GitHub Actions, Azure DevOps, Bitbucket with latest practices
- Cross-Platform - Windows 11 24H2, Server 2025, Linux, macOS compatibility
- Testing & Quality - Pester, PSScriptAnalyzer with 2025 rules
- NEW: Shell Detection - PowerShell vs Git Bash/MSYS2 differentiation on Windows
- NEW: Cross-Shell Compatibility - Path handling, environment variables, command differences
🎓 Learning Resources
Claude will guide you through:
- PowerShell fundamentals
- Advanced scripting techniques
- Module development
- CI/CD best practices
- Cloud automation patterns
- Security considerations
- Performance tuning
And always refers to:
- Latest PowerShell documentation
- Module-specific documentation
- Platform-specific guides
- Community best practices
⚡ Quick Start
After installation, just ask Claude:
"Create a PowerShell script to..."
"How do I install the Az module?"
"Set up PowerShell in GitHub Actions"
"Automate Azure resource deployment"
"Find modules for Microsoft Teams"
The plugin will automatically activate and provide expert guidance with working examples.
🔍 Technical Details
Plugin Name: powershell-master Version: 1.5.0 Author: Josiah Siegel License: MIT Last Updated: October 2025
Components:
- 5 comprehensive skills (powershell-master, powershell-7.5-features, powershell-2025-changes, powershell-security, powershell-shell-detection)
- 5 specialized commands
- 1 expert agent
Supported PowerShell Versions:
- PowerShell 7.5.4 (Stable, Recommended)
- PowerShell 7.6.0-preview.5 (Latest Preview)
- PowerShell 7.0+ (Supported)
- Windows PowerShell 5.1 (Legacy, limited support)
Knowledge Currency:
- PowerShell 7.5.4 stable / 7.6.0-preview.5 (October 2025)
- Az Module 14.5.0 (October 2025)
- Microsoft.Graph 2.32.0 (October 2025)
- PSResourceGet 1.1.0+ (October 2025)
- .NET 9.0.306 / 9.0.101
- 2025 breaking changes and migrations
- Modern security practices (JEA, WDAC)
🤝 Contributing
Contributions welcome! Areas for improvement:
- Additional command examples
- More module coverage
- Platform-specific optimizations
- CI/CD platform additions
- Best practice updates
🆘 Support
For help:
- Check the comprehensive skill documentation
- Review official PowerShell docs
- Visit PowerShell Gallery
- Explore PSGallery modules
📄 License
MIT License - free to use, modify, and distribute.
🎓 Credits
Created by Josiah Siegel. Built on PowerShell best practices and community knowledge.
Start automating with PowerShell today! Install this plugin and unleash the power of cross-platform PowerShell scripting, automation, and cloud management.
Details
- Marketplace
- JosiahSiegel/claude-plugin-marketplace
- Source
- plugins/powershell-master
- Author
- Josiah Siegel
- Category
- Community
- Keywords
- powershell, pwsh, powershell-7.5, powershell-7.6, script, automation, cicd, azure, modules, psgallery, psresourceget, microsoftgraph, secretmanagement, pester, security, jea, wdac, crossplatform, devops, dsc, shell-detection, git-bash, msys2, wmic-replacement, msonline-migration, azuread-migration
- Listed since
- Apr 7, 2026
More from JosiahSiegel/claude-plugin-marketplace
All 43- python-masterv2.3.6
- react-masterv2.1.2
- salesforce-masterv2.2.8
- ssdt-masterv1.6.8
- stripe-billing-masterv1.0.3
- tailwindcss-masterv2.2.3
- terraform-masterv2.0.5
- test-masterv1.6.8
- tsql-masterv2.0.10
- tui-masterv1.1.0
- unity-masterv1.0.4
- viral-video-masterv2.0.4
- windows-path-masterv1.0.7
- adf-masterv4.3.4
- ado-masterv1.5.9
- azure-masterv1.3.4
- azure-to-docker-masterv1.1.9
- bash-masterv2.0.7
- clerk-auth-masterv1.0.2
- cloudflare-masterv1.1.5
- context-masterv2.2.5
- doc-masterv1.6.1
- docker-masterv1.5.8
- dotnet-microservices-masterv1.0.9
Similar to powershell-master
More CLI & Terminal
powershell-masterSkilljosiahsiegel/claude-plugin-marketplace1.2K installsComprehensive PowerShell guidance for cross-platform scripting, modules, CI/CD, and cloud automation.
ado-masterPluginJosiahSiegel/claude-plugin-marketplace62 starsComplete Azure DevOps and Azure Pipelines expertise with Sprint 254-262 features (2025). PROACTIVELY activate for: (1) any Azure DevOps/Pipelines task, (2) YAML
azure-devopsSkillsanjay3290/ai-skills371 installsSingle-command skill suite for Azure DevOps covering work items, repos, pipelines, and more via REST API.
azurePluginmicrosoft/azure-skills1.7K starsMicrosoft Azure MCP and Skills integration for cloud resource management, deployments, and Azure services. Manage your Azure infrastructure, monitor application
azure-agent-skillsPluginMicrosoftDocs/Agent-Skills815 stars193+ production-ready Azure skills covering compute, data, AI/ML, networking, security, and management. Built from Microsoft Learn and following the Agent Skill
cicd-automationPluginwshobson/agents42.8K starsCI/CD pipeline configuration, GitHub Actions/GitLab CI workflow setup, and automated deployment pipeline orchestration