サインインのブロック
CautionBlock sign-in now
Update-MgUser -UserId <upn> -AccountEnabled:$false
Disables sign-in instantly for compromises/leavers — pair with session revocation to kill live tokens too.
Examples
Update-MgUser -UserId [email protected] -AccountEnabled:$false; Revoke-MgUserSignInSession -UserId [email protected]Block and revoke together
Syntax
Update-MgUser -UserId u -AccountEnabled:$false(ブロック)/:$true(解除)
Before you run it
High impact; follow approval flow.
Related commands
- Revoke-MgUserSignInSessionRevoke sign-ins
- Disable-ADAccountDisable accounts
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store