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 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