How to find sidhistory with dstools

Posted on 2009-02-08
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

    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

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    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…
    Experts-Exchange users below are the steps you can follow to upgrade your Lync server to latest CU's or cumulative updates. Note: Perform it during non-production hours.   Step 1: Backup your lync and SQL server database. Follow below article: h…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now