diff --git a/microsoft-365/enterprise/block-user-accounts-with-microsoft-365-powershell.md b/microsoft-365/enterprise/block-user-accounts-with-microsoft-365-powershell.md index 328d3ce7069..7e6cf201ea2 100644 --- a/microsoft-365/enterprise/block-user-accounts-with-microsoft-365-powershell.md +++ b/microsoft-365/enterprise/block-user-accounts-with-microsoft-365-powershell.md @@ -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 -Property "displayName,accountEnabled" | Select displayName, accountEnabled +Get-MgUser -UserId -Property "displayName,accountEnabled" | Select displayName, accountEnabled ``` ### Block multiple user accounts