WinSxS壓縮

具有管理權限的時候執行下列指令即可壓縮WinSxS資料夾,大約最少省下1.8GB空間
sc stop msiserver
sc stop TrustedInstaller

sc config msiserver start= disabled
sc config TrustedInstaller start= disabled
icacls "%WINDIR%\WinSxS" /save "%WINDIR%\WinSxS.acl" /t > nul
takeown /f "%WINDIR%\WinSxS" /r > nul
icacls "%WINDIR%\WinSxS" /grant "%USERDOMAIN%\%USERNAME%":(F) /t > nul
compact /s:"%WINDIR%\WinSxS" /c /a /i * > nul
icacls "%WINDIR%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t > nul
icacls "%WINDIR%" /restore "%WINDIR%\WinSxS.acl" > nul
sc config msiserver start= demand
sc config TrustedInstaller start= demand
ref: http://dandar3.blogspot.tw/2013/01/how-to-ntfs-compress-windows-winsxs.html

留言

熱門文章