To get the SID of an AD Object (User, Group, whatever) quickly, i recommend using PowerShell.
When trying to get the SID using ADUC (Active Directory User and Computer Snap-in), you can not copy/paste the SID as a string since it is stored in a binary format.
Now, to get the SID (Security Identifier) for a specific (AD) Active Directory Object using PowerShell use:
$AdObj = New-Object System.Security.Principal.NTAccount("ObjectName") $strSID = $AdObj.Translate([System.Security.Principal.SecurityIdentifier]) $strSID.Value
There is an error in this script,
second line uses $objUser that doesn’t exists, change it by $AdObj
$strSID = $AdObj.Translate([System.Security.Principal.SecurityIdentifier])
Nice script
Thanks alot – i will instantly correct this!
Pingback: How to find the location of the user profile on the local disk - Yuval Sinay
Thanks so much for this! Sharing is awesome
Pingback: Kleines VB / PowerShell Projekt | Dreadnik