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
Force a compromised or departing user to sign in again everywhere.
1Connect-MgGraph -Scopes 'User.ReadWrite.All' -NoWelcome2Revoke-MgUserSignInSession -UserId 'jane.doe@example.com'Invalidates refresh tokens. Existing access tokens stay valid until they expire (up to about an hour) unless Continuous Access Evaluation applies. Reset the password too if the account is compromised.