Grabbing the User Container string from Active Directory


Ever wondered how to get the exact User Container String for your user OU in active directory? A lot of software needs this for things like single sign and such. Here’s how to do it quickly:

dsquery ou domainroot > c:\string.txt

This should give you a text file in the root of the C: drive called string.txt. Open that text file and you will see all the strings to each container. Select the correct container and copy and paste the line. Its a nice quick way of getting it I’ve found to do it accurately instead of struggling to create the link manually. Original source


Leave a Reply

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

You are commenting using your 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