Skip to content

Instantly share code, notes, and snippets.

@chaimleib
Last active March 27, 2024 02:40
Show Gist options
  • Save chaimleib/09a9a08dd224934122676eeb1339b3b1 to your computer and use it in GitHub Desktop.
Save chaimleib/09a9a08dd224934122676eeb1339b3b1 to your computer and use it in GitHub Desktop.

The tutorial on tenforums for moving the Users folder did not work. There was an issue at the Sysprep step, which couldn't verify my Windows installation. At that point, I switched to the sevenforums instructions, planning to re-activate the users afterwards. I ended up not using D:/relocate.xml.

  1. Win-X, then open the admin command prompt.
  2. net user Administrator /active:yes
  3. Log out, then login as the Administrator (default: no password)
  4. Win-X, then open the admin command prompt.
  5. For each user, run the following. Don't forget the slash. This command resolves issues with missing Start menu and search bar. net user /active:no
  6. Open Start > Settings, then go to Accounts > Other users and make sure no other users are present.
  7. Win-R, then run diskmgmt.msc.
  8. Change D: drive to X:, then back to D:. This is to make sure Windows doesn't reassign the Users drive to a different letter later automatically.
  9. Create the directory D:\Users.
  10. Use copy-paste to copy over all the user folders to D:\Users, except for Administrator.
  11. Win-R, then run regedit.
  12. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  13. To make sure future accounts are put on the D: drive, change ProfilesDirectory from %SystemDrive%/Users to D:\Users
  14. Inside the current registry group, find the really long keys beginning with S-1-5-21. For each of those, change ProfileImagePath so that it points to the D: drive instead of to the C: drive.
  15. Go back to the administrator's command prompt.
  16. For each of the moved users, run: net user /active:yes
  17. From Start, type Control Panel, and open User Accounts > Manage another account.
  18. Reset every user's password.
  19. Try logging into one of the users
  20. If the Start Menu doesn't respond, Win-X, open the Administrator's Command Prompt, and run powershell. Then, run: Get-AppXPackage -AllUsers | Foreach {Add-AppXPackage -DisableDevelopmentMode -Register "$($_.Ins tallLocation)\AppXManifest.xml"}
  21. Go to their Documents folder, and get Properties on it.
  22. Verify that the folder is located on the D: drive.
  23. Log back into an Admin account.
  24. Delete the old user folders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment