Posted On February 28, 2021

How to Move C:\Users to Another Volume

kimconnect 0 comments
blog.KimConnect.com >> Windows >> How to Move C:\Users to Another Volume

Warning: this process will effectively re-route all file pointers from C:\Users\* to another volume. Windows is hard-coded to restore to this C:\Users directory; therefore, converting this folder into a junction will cause problems during system restores

Step 1: restart the computer into Recovery Mode (i.e. pressing F11 on HP laptops)

Step 2: At the system command Window, run these commands:

robocopy C:\Users D:\Users /mir /xj /copyall
ren c:\Users Users_old
dir c:\
d:\Users: mklink c:\Users d:\Users /j

Explanations:
a. D:\users is the new volume to replace C:\Users
b. /mir tells robocopy to mirror the directories, this will copy all files
c. /copyall will copy all the attributes includings ACL and Owner info
d. /xj is to direct robocopy to NOT follow junction points – this is absolutely necessary!
e. Rename C:\users (so that this change can be reverted)
f. Verify that the C:\Users directory has been renamed as a pre-requisite to replacing such object with a junction
g. Create a Junction from C:\Users to D:\Users
h. Exit the recovery console to resume Windows booting

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How to move the Active Directory (AD) Global Catalog (GC) to another domain controller (DC)

You don't actually move the GC between servers. Instead, you simply enable the GC on…

match

- The match() method retrieves the matches when matching a string against a regular expression.…

How to Repair Windows Corrupted System Files

Check for Corruptions # Check for corrupted system files Dism /Online /Cleanup-Image /ScanHealth [TESTWINDOWS001]: PS…