[转载]DriverStore文件夹特别大,能删除吗?

[转载]DriverStore文件夹特别大,能删除吗?

 

转自博客园https://www.cnblogs.com/lovebing/p/6951833.html 这篇文章,清理完C盘多了20G!不要太爽!

 

DriverStore文件夹特别大,能删除吗?

 

DriverStore\FileRepository文件夹特别大,能删除吗?

C:\Windows\System32\DriverStore\FileRepository文件夹特别大,怎么办?

DriverStore\FileRepository文件夹特别大

FileRepository文件夹特别大

 

最近准备备份系统,发现C盘超大,用TreeSizeFree分析了一下。

发现了这个超过18G的文件夹!!!

 Answer

1. run elevated command prompt (cmd with administrator rights): type

Dism.exe /online /Cleanup-Image /StartComponentCleanup

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

freed about 100-200Mb

2. delete files in %SystemDrive%\Windows\SoftwareDistribution\Download

freed  1-2 Gbs

3. run elevated command prompt (cmd with administrator rights): and type:

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\"

freed many Gbs!

It should help - run at your own risk

 

英文不好的,打开cmd (管理员)运行下面命令就好了:

Dism.exe /online /Cleanup-Image /StartComponentCleanup

 

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

 

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\"

 

参考链接:

http://www.xiazaima.com/jiaocheng/2534.html

https://www.zhihu.com/question/51654630

https://superuser.com/questions/597370/how-do-i-delete-folders-from-the-windows-7-driverstore/597395#597395

上一篇:win10 访问共享缺少 SMB1协议报错


下一篇:windows server 2012R2 打KB2919355失败的解决方案