February 10, 2012

Active Directory - computer SID

dsquery * -filter "(&(objectCategory=computer)(name=Name_of_computer))" -attr objectsid
dsquery computer | dsget computer -samid -sid

No comments:

Post a Comment