We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

How to find sidhistory with dstools

wgtnchris
wgtnchris asked
on
Medium Priority
1,736 Views
Last Modified: 2012-05-06
I need to create a sidhistory file so I can complete security translation on a fileserver I have migrated. I am using the following command from the new domain...
dsquery user -limit 2000 | dsget user -sidhistory -sid >c:\sidhistory.txt
The problem is that the sidhistory attribute is invalid. Can anyone tell me the correct attribute, or alternatively a better way to create a sidhistory file.
Comment
Watch Question

I have figured this out - funny how writing the question down on a website makes you view the problem objectively, making it easier to solve. Here's what I did...
In the source domain
dsquery user -limit 2000 | dsget user -samid -sid c:\sourcesids.txt
Then the same command in the target domain, except I limited the scope of the dsquery
dsquery user OU=migrated,DC=mydomain,DC=com -limit 2000 | dsget user -samid -sid c:\targetsids.txt
This gave me 2 files, one with the old sids, and one with the new sids. After a little manipulation in excel, I was able to sort, then combine the 2 lists into the required format for a sid history mapping file.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.