Created
July 24, 2017 09:29
-
-
Save doshyt/2ba563a47dbde439b5517aa8f3bfd0b1 to your computer and use it in GitHub Desktop.
One-liner for getting user group membership from AD
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
Import-Module ActiveDirectory; Get-ADPrincipalGroupMembership $(Get-AdUser -f {SamAccountNAme -like 'XXXYYY'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment