[Last Call] Learn how to a build a cloud-first strategyRegister Now


How to find sidhistory with dstools

Posted on 2009-02-08
Medium Priority
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.
Question by:wgtnchris
1 Comment

Accepted Solution

wgtnchris earned 0 total points
ID: 23595618
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.

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Sometimes when I receive a call from my users to solve their problems it is very difficult for me to found their computer IP address. Even finding their computer Host to provide remote support can be a problem.  So I resorted to Goo…
Microsoft has released remote PowerShell capabilities to all commercial Office 365 customers. So you can be controlled via PowerShell and not from the Office 365 admin center Download Windows PowerShell Module for Lync Online http://www.micros…
Integration Management Part 2
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question