Created
December 20, 2019 15:40
-
-
Save DanielMPries/4ea5c59b4d37f5635d265e15087053d7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(New-Object System.DirectoryServices.DirectorySearcher("(&(objectCategory=User)(samAccountName=$($env:userna | |
me)))")).FindOne().GetDirectoryEntry().memberOf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment