Skip to content

Instantly share code, notes, and snippets.

@tostka
Created July 17, 2019 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tostka/4bf5039e03ae1b9f3562ea56a4b1c535 to your computer and use it in GitHub Desktop.
Save tostka/4bf5039e03ae1b9f3562ea56a4b1c535 to your computer and use it in GitHub Desktop.
Purge AzureAD User completely
# NO WHATIF AVAILABLE for remove-msoluser!
remove-msoluser -userprincipalname $adu.userprincipalname ;
# run again to remove from dumpster
remove-msoluser -userprincipalname $adu.userprincipalname -removefromrecyclebin -force ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment