サインインのブロック
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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store