Created
May 17, 2017 14:49
-
-
Save sob/e5e87f206f2d48cc8b2587d57ef0a636 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-AzureAD | |
Get-AzureADUser -All | Export-CSV C:\users.csv | |
Get-AzureADGroup -All | Export-CSV C:\groups.csv | |
Import-CSV C:\Users.csv | Remove-AzureADUser -Force | |
Import-CSV C:\Groups.csv | Remove-AzureADGroup -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment