Last active
November 1, 2017 14:54
-
-
Save mtellin/6a782c02fa04d3b30288fff48ecc0339 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
# This will return the list of NSX Security Groups that are backed by Active Directory Groups for you to review | |
Get-NsxSecurityGroup | Where {$_.InnerXml -like "*DirectoryGroup*"} | |
# Alternatively, to also remove the security groups as part of the command | |
# Note: you will be prompted to confirm the group(s) it finds | |
Get-NsxSecurityGroup | Where {$_.InnerXml -like "*DirectoryGroup*"} | Remove-NsxSecurityGroup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment