Export Active Directory SIDs

Useful for finding specific SIDs such as -500 for Administrator -501 for Guest etc.

dsquery * -filter “&(&(objectClass=User)(objectCategory=Person))” -limit
0 -attr sAMAccountName givenName sn objectSID 

Information on well known SIDs below

http://www.windowsecurity.com/articles-tutorials/windows_server_2008_security/Well-Known-SIDs-Windows-Server-2008-R2-Active-Directory.html

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s