Windows 10 WinSxS Cleanup

笔记本用的Windows 10 从Windows 7升级来的,自装win7到现在有好几年了,系统盘也变得异常臃肿,不得不对WinSxS等目录做个清理。

  1. 清理WinSxS,以管理员权限运行以下命令 (cmd with administrator rights): type
  2. Dism.exe /online /Cleanup-Image /StartComponentCleanup

    Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase


  3. 删除历史更新下载的备份文件:
  4. delete files in %SystemDrive%\Windows\SoftwareDistribution\Download


  5. 删除积攒已久的驱动文件,以管理员权限运行以下命令(cmd with administrator rights): and type:
  6. TAKEOWN /F "C:\Windows\System32\DriverStore\FileRepository" /R
    ICACLS "C:\Windows\System32\DriverStore\FileRepository" /T /L /GRANT *S-1-1-0:F
    RD /s /Q "C:\Windows\System32\DriverStore\FileRepository\"

‹ Next Post Previous Post ›
No Comment
Add Comment
comment url
⬆️