How to regain access to domain user and copy folder from another domain user to this one

Pablo Felipe 0 Reputation points
2023-05-03T18:02:23.97+00:00

Hello,

I had a Windows Server 2016 with ADDS installed with X domain tree name. However I needed to reinstall Windows Server from scratch and reconfigure it. So I did and installed ADDS with the same domain name, but I had to leave and re-enter the domain on the workstations.

When logging in to the desktop, as expected, a new folder was created for the user, however I wanted the files saved in the old folders of the users and I made a complete copy including the hidden items of the user's folder from the old domain to the folder new. This caused the following problems:

  • Some users when logging in, the message "Welcome" appears and then "Leaving";
  • Others sign in to a temporary account with the following error: "Unable to sign in to your account - This problem can usually be fixed by logging out of the account and logging back in. If you don't sign out now, any files you create or changes you make will be lost".

I tried to copy without the hidden items from the old user's folder but it still has the same error. I also deleted the new user's folder to check if Windows recreated the profile in a way that allowed login but also without result.

So I would like help to solve these two problems:

  • Retrieve access to the new user's folder next to the domain so I don't have to create another User in ADDS;
  • A way that I copy the files from the user's old folder to the new one so that I don't disable access to it;
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,932 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,403 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,056 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Dave Patrick 426.3K Reputation points MVP
    2023-05-03T18:30:22.72+00:00

    Even though the domain name is the same it is in fact a new domain so all the members will need to be joined the new domain.

    As to the user profiles; 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--


  2. Dave Patrick 426.3K Reputation points MVP
    2023-05-03T19:25:48.1433333+00:00

    I tried to point the ProfileImagePath to the old profile but i still have the same problem (Unable to login to your account).

    Have the new accounts been created on the new domain? Has this desktop been joined to the new domain? When you recreated the domain you are starting over from scratch.

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


  3. Dave Patrick 426.3K Reputation points MVP
    2023-05-04T13:51:22.1233333+00:00

    After this I performed the complete copy of the other folder to the new one

    You should not have done this. The steps should have been;
    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.

    Nothing additional needs to be done.

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


  4. Dave Patrick 426.3K Reputation points MVP
    2023-05-04T14:49:55.9933333+00:00

    Well there is now probably at least two corrupt profiles on that pc. You can try cleaning it up and do it over or maybe just reimage it, then once user logs on and profile has been created you can copy the saved documents over to it at least.

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

    0 comments No comments