如何通过在Windows中清除WinSxS来节省空间

Windows uses different tools and applications. Windows provides recovery mechanisms to easily stand up the system again in a crash. Also while updating windows operating system there will a lot of backup and recovery files created and saved. All of these data is saved into folder named WinSxS in the system root folder Windows .

Windows使用不同的工具和应用程序。 Windows提供了恢复机制,可以轻松地在崩溃中再次站起来。 另外,在更新Windows操作系统时,将创建和保存许多备份和恢复文件。 所有这些数据都保存到系统根文件夹Windows名为WinSxS的文件夹中。

Generally the contents of this folder is assumed unnesecary and can be deleted safely. There are different ways to delete all these files in a safe way. Actually just deleting with rm command will work but there is a possibility for future problems. We will clear WinSxS folder by staying safe part.

通常,此文件夹的内容被假定为无关内容,可以安全地删除。 有多种安全删除所有这些文件的方法。 实际上,仅使用rm命令删除即可,但将来可能会出现问题。 我们将保持安全状态,以清除WinSxS文件夹。

使用磁盘清理器GUI (Using Disk Cleaner GUI)

The more user friendly and easy way is using Disk Cleaner which is a GUI tool to clean unnecessary data and temp file from Windows operating system. Just put following command to the windows run .

更加用户友好和简便的方法是使用“磁盘清理器”,它是一个GUI工具,可以从Windows操作系统清除不必要的数据和临时文件。 只需在Windows下运行以下命令即可。

cleanmgr.exe

Following window will appear. We will select Setup Log Files , System error memory dump files and Temproray Files and click OK .

将出现以下窗口。 我们将选择Setup Log FilesSystem error memory dump filesTemproray Files ,然后单击OK

This will start a disk clean up process and remove all selected unused files and folder. Also a form like below will be shows to provides process status.

这将启动磁盘清理过程,并删除所有选定的未使用文件和文件夹。 还将显示如下表格,以提供过程状态。

使用Dism.exe (Using Dism.exe)

Dism is a tool for deployment image servicing and management. As its management deployment it can clear deployment and recovery related temporary and unused files like below. In order to use Dism we will open a command line or MS-DOS with cmd . This command line should have Administrator privileges because dism requires these privileges.

Dism是用于部署映像服务和管理的工具。 作为其管理部署,它可以清除与部署和恢复相关的临时和未使用文件,如下所示。 为了使用Dism我们将使用cmd打开命令行或MS-DOS。 此命令行应具有管理员权限,因为dism需要这些权限。

> Dism.exe /online /Cleanup-Image /StartComponentCleanup
LEARN MORE  Dism Command Tutorial To Repair Windows
了解更多Dism命令教程以修复Windows

翻译自: https://www.poftut.com/save-space-clearing-winsxs-windows/

winsxs文件夹瘦身方法: vista,windows2008,windows7的许多系统组件(主要是动态库)被安装在windows\winsxs目录下, 但是,对于同一组件,由于升级以及其它原因,windows并没有删除低版本的同一组件。 所以这里的瘦身方法就是删除多余的低版本组件。 考虑到系统的稳定及兼容性,本工具仅只分离多余的低版本组件,并未作任何删除。 (不同大版本号的同一组件视为不同组件,也就是说仅只分离小版本号不同的组件) (同版本的不同语言组件同样视为不同组件,不作分离) 例如:组件 x86_microsoft-windows-i..ersandsecurityzones_31bf3856ad364e35在我的winsxs下有如下版本   ver: 8.0.6001.18702 视为不同组件,当然若有不同语言版本也视为不同组件,不作分离 ver: 6.0.6001.18000 ver: 6.0.6001.18023 ver: 6.0.6001.18063 ver: 6.0.6001.18099 ver: 6.0.6001.18157 ver: 6.0.6001.18203 ver: 6.0.6001.18226 ver: 6.0.6001.22120 ver: 6.0.6001.22167 ver: 6.0.6001.22212 ver: 6.0.6001.22288 ver: 6.0.6001.22355 ver: 6.0.6001.22389 使用方法: 1.取得windows\winsxs的管理员权限, 以管理员身份运行permission_Cwinsxs.bat(当前系统安装在C盘),大约要运行5分钟 或permission_Dwinsxs.bat(当前系统安装在D盘),安装其它盘的请自行修改。 2.copy "winsxsCleaner.exe" 到winsxs目录下,运行,大约要等3分钟或者更多 完成后,多余的动态库已经被转移到winsxs下的__redundance目录下 3.请自行处理__redundance目录,建议备份后再删除。 此法同样适用于windows7。 由此瘦身方法造成的任何缺失,损失和后果本人一概不于负责。 附上原代码,请放心使用
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值