Skip to content

Commit

Permalink
Update block-user-accounts-with-microsoft-365-powershell.md
Browse files Browse the repository at this point in the history
The -ObjectID parameter doesn't work for this command. -UserId is the correct one.
  • Loading branch information
ndlozano1990 authored Aug 27, 2024
1 parent 265bd8d commit 824586a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Update-MgUser -UserId $user.Id -BodyParameter $params
To check the blocked status of a user account use the following command:

```powershell
Get-MgUser -ObjectID <UPN of user account> -Property "displayName,accountEnabled" | Select displayName, accountEnabled
Get-MgUser -UserId <UPN of user account> -Property "displayName,accountEnabled" | Select displayName, accountEnabled
```

### Block multiple user accounts
Expand Down

0 comments on commit 824586a

Please sign in to comment.