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

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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
不少人发现,Windows使用一段时间后,C:\Windows\System32\DriverStore目录越来越大。对于还在使用128G或者更小容量的SSD用户来说,更是头疼。DriverStore是Windows用来存放第3方驱动程序的,当你安装一个驱动时,对应的文件就会被拷贝到DriverStore。当你卸载驱动时,文件会从DriverStore删除。如果你升级驱动时,Windows会保留旧版驱动,这样有问题时可以回滚。 很美好是不是?可惜现实总是有好些不如意的地方。 比如你有一块NV显卡,老黄比较勤快,一个月发一两次新驱动,每个版本驱动安装后会占用几百兆空间。半年后你一看,WTF,DriverStore已经有好几G了。于是你去百度/Google/Bing了一把:怎么给DriverStore减肥。搜出来的帖子大部分都是教你获取文件夹权限,删除。然后你就照做了,恭喜你,你已经对系统造成了不可恢复的破坏,以后很可能会有些莫名其妙的错误。其实Windows一直都有一个自带工具pnputil.exe,用这个可以列出DriverStore中的驱动,还可以删除。但是,命令行的工具太麻烦了,怎么办?DriverStore Explorer来拯救你。 DriverStore Explorer给pnputil做了个简单的图形界面。用管理员权限启动后,右键点击不要的选择删除即可。先准备好所有的驱动,全选删除。不选择"Force Deletion"的话,正在使用中的驱动是不会被删的。如果有需要的驱动不小心被删掉,再装一次吧。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值