File server and application server migration

Anil Kadam 20 Reputation points
2023-02-28T10:58:41.8+00:00

Hi,

I want to migrate File Servers, application servers and Active Directory users and groups and their members.

Around 20 Servers moving from ABC domain to XYZ domain, there is no trust between both Domain Controller. If there no trust between both Domain I cannot user ADMT tool because its required trust. Hence, I decided to migrate AD users, groups with the help of PowerShell. Also note that our planning is first will copy same users and groups on XYZ Domain and then will remove ABC domain file server and add it to XYZ Domain.

I required some PowerShell scripts for the migration.

  1. export AD users from ABC Domain and import the same in XYZ Domain.
  2. export AD Groups and their "member of" from ABC Domain and import the same in XYZ Domain.
  3. Export all ABC Domain file servers shared drive permissions backup and when I move it to new Domain ( XYZ), I will apply the same permissions/ access rights on each and every folder.

Kindly note that all 20 servers moving from ABC to XYZ domain, when I add into new domain XYZ, DC automatically assign the new SID for each server as well as groups and users.

Regards,

Anil Kadam

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,899 questions
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 44,561 Reputation points
    2023-03-01T16:59:54.57+00:00

    Hi,

    I'd be happy to help you out with your question. Sorry for the inconvenience caused.

    As you require some PowerShell scripts for the migration.

    When servers are added to a new domain, the domain controller automatically assigns new SIDs for each server as well as groups and users. PowerShell scripts can be used to move computers between domains, and Active Directory can be used to move users from one domain to another. Additionally, PowerShell scripts can be used when migrating file servers in a domain migration. For SharePoint migrations, Move-SPUser cmdlet can be used to migrate users programmatically

    1. Export AD users from ABC Domain and import the same in XYZ Domain :- To export and import Active Directory users from one domain to another, PowerShell scripts can be used. For example, when configuring a hybrid environment, Office 365 accounts can be merged with on-premises Active Directory accounts.
    2. Export AD Groups and their "member of" from ABC Domain and import the same in XYZ Domain :- PowerShell scripts can be used to export AD groups and their "member of" from ABC domain and import the same in XYZ domain. Active Directory can be used to create groups like support and make template accounts a member of them. PowerShell commands can also be used to manage group membership in Active Directory.
    3. Export all ABC Domain file servers shared drive permissions backup and when I move it to new Domain ( XYZ), I will apply the same permissions/ access rights on each and every folder :- PowerShell scripts can be used to export folder permissions to a CSV file, and to manage folder permissions. When establishing a new domain controller and joining a file server to it, shared folder permissions can be exported and imported.

    Please refer to following documentation, it will help you get desired PowerShell Scripts :-

    ServerMigration Module | Microsoft Learn :- https://learn.microsoft.com/powershell/module/servermigration/

    Active Directory - Microsoft Q&A :- https://learn.microsoft.com/answers/tags/251/active-directory?filterby=withacceptedanswer&orderby=answercount&page=57

    How to import and export ad users or ou :- https://learn.microsoft.com/answers/questions/281190/how-to-import-and-export-ad-users-or-ou-from-one-d.html

    Exporting and importing shared folder permissions :- https://social.technet.microsoft.com/Forums/exchange/8fa603a8-026c-43d3-ae73-543bad3a57ce/exporting-and-importing-shared-folder-permissions-in-2-different-domains?forum=ITCG

    If you have any other questions or need assistance with anything, please don't hesitate to let me know. I'm here to help.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.


1 additional answer

Sort by: Most helpful
  1. Limitless Technology 44,561 Reputation points
    2023-03-01T17:00:12.1533333+00:00

    Double post

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.