Thursday, December 27, 2018

How to Delete an AzureAD object that Won't Delete

1. Ok. You deleted a user from your on-premise Active Directory and it's still showing that bugger in Azure Active Directory. Your Google Kung-Fu is strong, but you can't find the dang commands. Here is what worked for me.

2. Get Connected via Powershell to Office365 / AzureAD: (Install) (Install)

3. Install-Module -Name AzureAD

4. After your connected. Run the following command:

PS C:\Windows\system32> Remove-MsolUser -UserPrincipalName

Continue with this operation?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y

5. Check your AzureAD portal to make sure it's gone.

6. Freaking dance man!

Reference Links:

Unhelpful Real World Training Junk:


Post a Comment