JAEN

Microsoft 365

サインインのブロック

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

Syntax

Update-MgUser -UserId u -AccountEnabled:$false(ブロック)/:$true(解除)

Before you run it

High impact; follow approval flow.

Related commands

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