PowerShell Lab
Build, find and save PowerShell
Reviewed templates and commands with requirements, permissions and risk spelled out. Nothing here runs anything — you copy, review and run it yourself.
Search pages, tools, PowerShell commands and ports
1Connect-MgGraph -Scopes 'User.Read.All' -NoWelcome2Get-MgUserLicenseDetail -UserId 'jane.doe@example.com' | Select-Object SkuPartNumber, SkuId