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
See which MFA methods (Authenticator, phone, FIDO2…) a user has registered.
1Connect-MgGraph -Scopes 'UserAuthenticationMethod.Read.All' -NoWelcome2Get-MgUserAuthenticationMethod -UserId 'jane.doe@example.com' |3 Select-Object Id, @{ Name = 'Type'; Expression = { $_.AdditionalProperties['@odata.type'] -replace '#microsoft.graph.', '' } }