Created
September 14, 2014 20:32
-
-
Save jiulongw/31131dfe70bfd536525d to your computer and use it in GitHub Desktop.
Powershell: Get domain user SID
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
$objUser = New-Object System.Security.Principal.NTAccount("<domain>","<user name>") | |
$objUser.Translate([System.Security.Principal.SecurityIdentifier]).Value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment