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

Applying Windows Patches

#Example: Disabling Remote Code Execution(new-object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x64.exe','C:\temp\vcredist_x64.exe')c\:temp\vcredist_x64.exe /quiet /norestart #Example: Download updates using BITS (cannot invoke…

Remote Desktop Connection An internal error has occurred.

RDP Error Message:     Resolution: Method 1: Create and apply a self signed certificate…

Active Directory Domain Controller Certificates Installation Guide

Overview This article deals with Domain Controllers, rather than member servers. Thus, Active Directory or…