How to move users programfiles (and x86) and programdata to HDD after installing Windows in SSD boot Drive

1. Install Windows 7 on your SSD. Just do the insalling progress, until user creation (last reboot). You can easilly do it. If you don't know how to there are tons of tutorials avalible. Just Google it.

2. Open Command Line before starting user setup. (Use shift + f10)3. Enter theese commands to copy Users, Program Files, Program Files (x86) and ProgramData to HDD.

  • robocopy "C:\Users" "D:\Users" /E /COPYALL /XJ
  • robocopy "C:\Program Files" "D:\Program Files" /E /COPYALL /XJ
  • robocopy "C:\Program Files (x86)" "D:\Program Files (x86)" /E /COPYALL /XJ
  • robocopy "C:\ProgramData" "D:\ProgramData" /E /COPYALL /XJ

3. Now delete these folders from C

  • rmdir "C:\Users" /S /Q
  • rmdir "C:\Program Files" /S /Q
  • rmdir "C:\Program Files (x86)" /S /Q
  • rmdir "C:\ProgramData" /S /Q

Removing ProgramData will give an error about few files, ignore it, we will fix it.

4. Create Just-in-case junctions

  • mklink /J "C:\Users" "D:\Users"
  • mklink /J "C:\Program Files" "D:\Program Files"
  • mklink /J "C:\Program Files (x86)" "D:\Program Files (x86)"

5. Open registry editor.

  • regedit

6. Registry edits to set default locations of Users, Program Files, Program Files (x86) and ProgramData

  1. Go to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion
  2. Do the edits there (screenshot is avalible, scroll down to see edit where)
  3. Go to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/ProfileList
  4. Do the edits there (screenshot is avalible, scroll down to see edit where)
reg00.png
reg01.png

7. Now you can close cmd and regedit and finish winsows setup.

8. After all done reboot windows

9. Enable hidden files & folders in directory settings located at Control Panel

how_to_show_hidden_files_in_windows_7.jpg

10. Go to SSD (C:\) and delete or shift delete ProgramData

11. Create the just-in-case junction for ProgramData

  1. Open run by pressing windows+r
  2. Run cmd
  3. Enter this code:
  • mklink /J "C:\ProgramData" "D:\ProgramData"

YOU ARE DONE!
You will never run out of space in your SSD anymore!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容