Group SID
Some time we require a SID for the group in active directory, using the simple inbuilt windows command we can get the group SID
You can use the below command to find the group SID
Group SID (Group to SID)
Groupname: sales_executes(Pre-Win2k Name)
Syntax:
dsquery group -name “groupname” | dsget group -sid
Example:
dsquery group -name sales_executes | dsget group -sid
sid
S-1-5-21-0220945662-3111232555-725789543-38967718
dsget succeeded
Related Articles
Force active directory replication
application directory partition
You have a typo in your command:
dsquery user -name “groupname” | dsget group -sid
Its actually:
dsquery group -name “groupname” | dsget group -sid
Thanks for your comments, it’s corrected.