Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

修改登錄表將 Win7 使用者目錄移至 D 槽 (或其他分區) 完整教學

編輯:Windows 7 系統介紹

適用場景

系統碟 (C:) 空間有限 (如小容量 SSD),欲將使用者設定檔 (Documents、Desktop、Downloads 等) 移至大容量資料碟 (D:),避免 C 槽爆滿。

操作步驟 (以 Administrator 為例)

  1. 離線複製資料夾:進入 WinPE (或另一套系統),將 C:\Users\Administrator 整個複製到 D:\Users\Administrator (保留權限/屬性)。
  2. 修改登錄表 ProfileList:
    開機進 Win7,Win+R → regedit。
    定位:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList。
    找到含 Administrator 的 SID 子機碼 (如 S-1-5-21-...-500),修改 ProfileImagePath 值為 D:\Users\Administrator。
  3. 修改使用者 Shell Folders:
    定位兩處:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    將所有指向 %USERPROFILE% 或 C:\Users\Administrator 的值,改為 D:\Users\Administrator 對應路徑 (如 Desktop、Documents、Downloads 等)。
  4. 驗證與清理:
    確認 D 槽資料夾結構完整 → 重啟 → 進入系統檢查文件庫/桌面路徑已指向 D 槽 → 確認無誤後,可將 C 槽原 Administrator 資料夾備份刪除。

注意事項

  • 操作前請完整備份系統 (建議用 Ghost/映像備份)。
  • 僅移動特定使用者,不建議移動整個 C:\Users 目錄 (系統服務帳戶會出問題)。
  • 若有多使用者,需對每個 SID 重複步驟 2-3。
  • Win10/11 建議使用「設定 → 系統 → 儲存體 → 更改新內容儲存位置」或符號連結 (mklink) 方式,更安全簡單。
Copyright © Windows教程網 All Rights Reserved