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 Become a DevOps Engineer in 2020

This note is scribbled up with about 5-minute of time. Thus, it may not have…

Install PBX in a Flash

Download and install FreePBX version 13Set static IPsifconfig <= to find interface namevim /etc/sysconfig/network-scripts/ifcfg-eth0---------ADD-----------BOOTPROTO="static"IPADDR=192.168.139.139NETMASK=255.255.255.0BROADCAST=192.168.139.255NM_CONTROLLED=noONBOOT="yes"-----------------------vim /etc/sysconfig/network-scripts/ifcfg-eth1---------ADD-----------BOOTPROTO="dhcp"ONBOOT="yes"-----------------------vim…

PowerShell: Manage Remote Desktop Servers by Logging Off Idle Sessions That Have Certain Inactive Programs

# manageRdsSessions.ps1 # Sequence of workflow: # a. Gather active and disconnected sessions on all…
Other project: DragonCoin.com