Win11 VHDX檔案製作
1.安裝win11系統
2.掛載成磁碟機後就可以用 ghost 檔把客戶端的 Windows 10 系統 整個複製(ghost)到 VHDX 中
3. Ghost之前先做底下修改regedit
#HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session
Manager\Memory Management\PagingFiles
#HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session
Manager\Memory Management\ExistingPageFiles
#以上二個修改為空字串
###如用vhdx安裝 Windows 11 要在以下值設定為4
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\FsDepends\Parameters\VirtualDiskExpandOnMount
4.在winpe開機後,安裝好的w11作業系統底下的四個檔案刪除(.tmp與.sys)
可減少許多空間,VHDX檔案較小。
將VHDX檔案瘦身參考
https://www.itylq.com/powershell-optimize-vhd-filespace.html