如何清理windows server 2008 R2 中winsxs文件夹

时间:2024-04-12 07:49:41

最近发现公司的一台服务器C盘只剩5G左右的空间,经过仔细查看发现C:\windows\winsxs 目录占了20多G的容量。此文件夹是更新系统补丁产生的不能直接删除,所以只能通过cleanmgr.exe工具进行清理C盘。

以下方法亲自验证清理成功:

一、在Windows Server 2008 R2,右击C盘,查看属性,发现界面中没有清理C盘的工具按钮,那如何使用系统自带的清理工具呢?

二、驱动器的常规属性和 cleanmgr.exe 磁盘清理选项不是默认情况下出现在 Windows Server 2008 或 Windows Server 2008 R2中的,需要手动处理下。
因此为了使用cleanmgr.exe将需要复制已经存在于服务器、cleanmgr.exe和cleanmgr.exe.mui的两个文件。 这两个文件的具体位置如下图:

如何清理windows server 2008 R2 中winsxs文件夹

找到这两个文件后将它们复制到以下位置:
Cleanmgr.exe文件复制到c:\windows\System32中。
Cleanmgr.exe.mui文件复制到c:\windows\System32/zh-CN中。

现在您可以通过开始-运行 -输入Cleanmgr.exe启动磁盘清理工具,步骤如下图:
如何清理windows server 2008 R2 中winsxs文件夹

如何清理windows server 2008 R2 中winsxs文件夹

如何清理windows server 2008 R2 中winsxs文件夹

如何清理windows server 2008 R2 中winsxs文件夹

如何清理windows server 2008 R2 中winsxs文件夹

等待清理结束就OK了。。。

转载于:https://blog.51cto.com/11843551/2350116