Last active
May 17, 2017 15:41
-
-
Save sob/571c66098f85b27d22d58c189b59bc9d 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 -Filter "UserType eq 'Member'" | Export-CSV C:\users.csv | |
Get-AzureADGroup | Export-CSV C:\groups.csv | |
Import-CSV C:\Users.csv | Remove-AzureADUser | |
Import-CSV C:\Groups.csv | Remove-AzureADGroup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment