Help us improve
Share bugs, ideas, or general feedback.
From powershell-master
Migrates PowerShell scripts for 2025 deprecations: replaces MSOnline and AzureAD cmdlets with Microsoft Graph PowerShell equivalents, WMIC with native cmdlets.
npx claudepluginhub josiahsiegel/claude-plugin-marketplace --plugin powershell-masterHow this command is triggered — by the user, by Claude, or both
Slash command
/powershell-master:ps-migrate <script.ps1 or 'MSOnline'|'AzureAD'|'WMIC'>This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# PowerShell 2025 Migration Assistant Migrate scripts affected by 2025 breaking changes: ## Migration Targets ### 1. MSOnline to Microsoft Graph PowerShell (Retired March 2025) ### 2. AzureAD to Microsoft Graph PowerShell (Retired May 2025) ### 3. WMIC to PowerShell Native (Removed in Windows 11 24H2) ## Migration Process 1. **Scan** - Identify all occurrences of deprecated modules/commands 2. **Map** - Create mapping of old commands to new equivalents 3. **Update** - Replace commands with modern alternatives 4. **Test** - Verify functionality after migration 5. **Document** - Upd...
/pwsh-scriptCreates, reviews, or optimizes bash/shell scripts with 2025 best practices, ShellCheck compliance, error handling, security checks, and cross-platform support.
/migration-guideGenerates detailed migration guides for software updates, covering scope analysis, impact assessment, prerequisites, step-by-step processes, breaking changes, configurations, and database migrations.
/migrate-apiMigrates API to new version via analysis of breaking changes, automated compatibility layers, migration scripts, test generation, and zero-downtime deployment configs.
/hatch3r-migration-planCreates a phased migration plan for a major dependency or framework upgrade, analyzing breaking changes and producing actionable rollback procedures plus todo.md entries.
/modernize-legacyAnalyzes legacy systems for cloud migration to Azure/AWS/GCP and microservices transformation, producing service inventories, dependency maps, architecture designs, DR strategies, and phased roadmaps in session directories.
/execute-planNotifies that this command is deprecated, will be removed in next major release, and directs to use superpowers:executing-plans skill instead.
Share bugs, ideas, or general feedback.
Migrate scripts affected by 2025 breaking changes:
# OLD: MSOnline
Connect-MsolService
Get-MsolUser -All
Set-MsolUser -UserPrincipalName $upn -DisplayName $name
# NEW: Microsoft Graph PowerShell
Connect-MgGraph -Scopes "User.Read.All", "User.ReadWrite.All"
Get-MgUser -All
Update-MgUser -UserId $userId -DisplayName $name
# OLD: AzureAD
Connect-AzureAD
Get-AzureADUser -All $true
Get-AzureADGroup -ObjectId $groupId
New-AzureADUser -DisplayName $name -UserPrincipalName $upn
# NEW: Microsoft Graph PowerShell
Connect-MgGraph -Scopes "User.Read.All", "Group.Read.All"
Get-MgUser -All
Get-MgGroup -GroupId $groupId
New-MgUser -DisplayName $name -UserPrincipalName $upn -PasswordProfile $pwdProfile
# OLD: WMIC
wmic os get caption
wmic cpu get name
wmic process list brief
wmic product get name,version
# NEW: PowerShell
Get-CimInstance Win32_OperatingSystem | Select-Object Caption
Get-CimInstance Win32_Processor | Select-Object Name
Get-CimInstance Win32_Process | Select-Object Handle, Name, ProcessId
Get-CimInstance Win32_Product | Select-Object Name, Version
# Or for software: Get-Package (faster, doesn't use WMI)
| MSOnline | Graph PowerShell |
|---|---|
Connect-MsolService | Connect-MgGraph |
Get-MsolUser | Get-MgUser |
Set-MsolUser | Update-MgUser |
Get-MsolGroup | Get-MgGroup |
Add-MsolGroupMember | New-MgGroupMember |
| AzureAD | Graph PowerShell |
|---|---|
Connect-AzureAD | Connect-MgGraph |
Get-AzureADUser | Get-MgUser |
New-AzureADUser | New-MgUser |
Get-AzureADGroup | Get-MgGroup |
Get-AzureADApplication | Get-MgApplication |
| WMIC | PowerShell |
|---|---|
wmic os get | Get-CimInstance Win32_OperatingSystem |
wmic cpu get | Get-CimInstance Win32_Processor |
wmic memorychip get | Get-CimInstance Win32_PhysicalMemory |
wmic diskdrive get | Get-CimInstance Win32_DiskDrive |
wmic process | Get-CimInstance Win32_Process |
# Install Microsoft Graph PowerShell SDK
Install-PSResource -Name Microsoft.Graph -Scope CurrentUser
# Or install specific submodules
Install-PSResource -Name Microsoft.Graph.Users
Install-PSResource -Name Microsoft.Graph.Groups
Install-PSResource -Name Microsoft.Graph.Authentication