# Migrate user domain profile from one domain to another domain

[https://community.spiceworks.com/how\_to/145014-migrate-user-domain-profile-from-one-domain-to-another-domain](https://community.spiceworks.com/how_to/145014-migrate-user-domain-profile-from-one-domain-to-another-domain)

<div class="author-sidebar_wrapper" data-shared-author-sidebar="" id="bkmrk-fgorovodsky2%C2%A0-jul-20"><div class="author-sidebar"><div class="author-sidebar_author-info"><div class="author-info_other"><div class="author-info_name">[fgorovodsky2](https://community.spiceworks.com/people/fgorovodsky2) <span class="verified-professional-popover" data-verified-professional-tooltip="authorCard">![This person is a Verified Professional](https://community.spiceworksstatic.com/assets/portfolio/verified_business_pro-3a1cf27ffcc19a21104eca567e1efa8a5b82328a5b3eb672fef648b0b3515ca1.png)</span></div><div class="author-info_timestamp">Jul 20, 2017<span class="timestamp_item">2 Minute Read</span></div></div></div><div class="author-sidebar_spacer" data-sidebar-spacer="">  
</div>- <div class="sui-spicebttn-wrap">[<span class="sui-spicelink-text">Spice</span>](https://community.spiceworks.com/how_to/145014-migrate-user-domain-profile-from-one-domain-to-another-domain "Spice this!")[(34)](https://community.spiceworks.com/how_to/145014-migrate-user-domain-profile-from-one-domain-to-another-domain "See who spiced this")</div>
- <div class="sui-spicebttn-wrap"><a class="how-to_reply-bttn" data-comment-scroll="true">Reply</a> (8)</div>
- <div class="subscription-toggle sui-spicebttn-wrap"><a class="subscription-toggle_text">Subscribe</a></div>
- <a data-original-title="" data-target="#social_links_popover" data-toggle="sui_popover" title="">Share</a>

</div></div>This is quite similar to migrating local to domain. The difference is about setting permissions and joining to domain. As you know to be able to add domain account to permissions TAB, computer needs to be joined to domain. When computer is a member of a different domain already it might be confusing. So what we need to do:

## <span class="subheader">13 Steps total</span>

## Step 1: Step 1

Login to local admin account

## Step 2: Step 2

Join new domain providing credentials to it, reboot computer

## Step 3: Step 3

Login again as local administrator making sure the computer is joined to the new domain – computer properties

## Step 4: Step 4

Now, we need to add user from new domain to permissions of user files and registry. Just repeat step 3

## Step 5: Step 5

Now, the registry part, it is a bit tricky since we need to load external registry because we won’t be able to log on old domain account.

## Step 6: Step 6

Open regedit, select HKLM, then select file/load registry hive. Navigate to old domain user account folder, select file NTUSER.DAT (hidden by default), specify a temporary name for that hive, like user-reg.

## Step 7: Step 7

Now right-click on user-reg, click permissions

## Step 8: Step 8

In new window click Advanced, then Add, and then type in NEW DOMAIN ACCOUNT NAME. You may need to provide domain admin credentials to query AD.

## Step 9: Step 9

Select user, then check following options: 9a) Apply to: This Key and subkeys 9b) Full Control 9c) DO NOT SELECT LAST CHECKBOX – apply these permissions to objects and/or containerswithin this container only

## Step 10: Step 10

Click Ok, then ok, then ok.

## Step 11: Step 11

Now navigate to HKLM\\Software\\Microsoft\\Windows\_NT\\CurrentVersion\\Profile List 11A) Find the one, with old domain path to profile in key: ProfileImagePath, copy value of this key, eg. C:\\Users\\test.olddomain 11B) Find the other one with newly created profile path, eg. C:\\Users\\test.newdomain 11C) Replace value of ProfileImagePath from old profile, eg. C:\\Users\\test.olddomain with C:\\Users\\test.newdomain

## Step 12: Step 12

Double check permissions for folders, check value of the keys.

## Step 13: Step 13

If everything is ok, reboot your computer and try to login using username from new domain.

That would be all. If you login to new domain account and cannot see/open a folder or file it is generally related to permissions. Just reboot computer, login to local admin or domain admin, select user profile and re-add permissions with propagation to child objects.

If you login and are presented with temporary profile, you need to re-set permissions for registry for new user. Basically it isn’t a big magic behind this, just simple permissions editing with path to profile swapping. That’s all:)