- Win+R
- cmd.exe
- Ctrl+Shift+Return
net user Administrator /active:yes
net user Administrator *
wmic useraccount where name='<OLD_USER_NAME>' rename '<NEW_USER_NAME>'
- Log on to another administrator account
- Rename directory
- Run regedit
- Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\
- Find the relevant
ProfileImagePath
key in the user accounts SID folders and change value to the new path - Log out of Administrator account
- Log on to user account
Log on to Administrator account
Copy User profiles directory to new location, optionnaly renaming it (ignore locked temporary files)
cd c:robocopy /copyall [/mir|/E] /xj Users <NEW_DRIVE_LETTER>:Users/xd WindowsApps /xd OneDrive
Method A: Updating registry values * Run regedit * Browse to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
- Adjust values of the
Default
,ProfilesDirectory
andPublic
keys to the new location - Adjust the
ProfileImagePath
keys in the users accounts SID folders and change value to the new path - Remove old folder after verifying everything is working
rmdir /S /Q C:Users
- Adjust values of the
Method B: Using NTFS folder junction * Remove old folder after verifying everything is working
rmdir /S /Q C:Users
- Create folder junction pointing to new Users folder location
mklink /J Users <NEW_DRIVE_LETTER>:Users
Fix WindowsApps directory copy issue
https://superuser.com/questions/1437590/typing-python-on-windows-10-version-1903-command-prompt-opens-microsoft-stor/1461471#1461471
https://superuser.com/questions/1437590/typing-python-on-windows-10-version-1903-command-prompt-opens-microsoft-stor/1442909#1442909
https://superuser.com/questions/1437590/typing-python-on-windows-10-version-1903-command-prompt-opens-microsoft-stor