Move active directory computers and Users to new domain with the same name

Tom Abi 20 Reputation points
2023-03-12T16:56:54.4366667+00:00

hello

i have a two dc that have infected with virus , i will like to reinstall both of them,

i don't want to create a new DC and connected them , what i am planning to do is to create all the domain from scratch with a new DC with the same domain name

as the infected ones.

i what to export all objects (users , computers) from the infected DC (don't want the sysvol and netlogon folder ) with PowerShell and import to the new create domain ,

my question , after i import the objects to the new create domain ( dc with the same name)

do the computers that join the infected dc will still be connected to the dc ?

do the user folder will be the old one , or during the login a new folder

will be created ?

thanks in advance

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

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2023-03-12T17:14:52.8766667+00:00

    do the computers that join the infected dc will still be connected to the dc ?

    When you join the pc to the new domain then the pc will no longer connect to or associate the old domain

    do the user folder will be the old one , or during the login a new folder

    Even though the new domain has the same name it is in fact a new domain so a new domain user profile will be created at the first logon to the new domain. A work-around may be to logon once as the new domain user so the new profile gets created, then logon as another user with local admin rights, navigate to
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

    find the new domain profile and point the expand string ProfileImagePath to the old profile.

    -

    --please don't forget to upvote and Accept as answer if the reply is helpful--


0 additional answers

Sort by: Most helpful