Manually clean up redundant system garbage in C disk

Source: Internet
Author: User
Tags safe mode winsxs folder

In the Windows directory of Vista and Windows 7 system disks, there is a folder named WinSxS, which occupies more than half of its volume (nearly 3GB) for the entire Windows directory. Not only that, as the system uses the time unceasing extension, the WinSxS folder volume will become bigger, my now already 4G many, this is a piece of "The Fat flesh"!

For the system disk space is not very rich friends, this fast "fat" will inevitably slow down the system's operating speed. If it's just for this reason, repartition the hard disk to make the system disk more space, and then reload the system, which is too much trouble! In fact, we can take a simpler approach, WinSxS this piece of "fat" into other hard disk partitions, Make the system run faster by freeing up more unused space for the system disk. Below, I take windows 7 as an example, to introduce you to the specific procedures

The role of the Tips:winsxs folder

WinSxS is a very important folder in the Windows directory of Vista/windows 7, which contains a number of important components, and the version is also very complex, in order to ensure the normal operation of Windows, the file inside is not deleted, These folders support Mscorwks.dll and cannot be loaded without them nmscorwks. If forcibly deleted, may only in Safe mode can reluctantly enter Windows,windows also "hang".

The first step: Create a link. First download "Pendmoves and MoveFile" from the official, and then extract the downloaded ZIP format compressed package named "Pendmoves" into the "X:windowssystem32" directory (X is the system disk, below), and then click "Start-Run" menu, and then in the pop-up "Run" dialog box in and out of CMD and press the "Ctrl+shift+enter" shortcut keys, run cmd as an administrator, open the Command Prompt window, the last window at the cursor to execute the following two commands (each input command to press ENTER, the same below)

CD windows

mklink/x Winsxs.link winsxs.moved

Step two: Get Mshtml.dll Full Control permissions on the WinSxS folder. Double-click the computer icon for the desktop, navigate to the X:windows directory, right-click the WinSxS folder in the directory, select Properties, open the Security tab of the WinSxS Properties dialog box, click the Advanced button on the tab, and then in the new pop-up WinSxS The Advanced Security Settings dialog box, switch to the Owner tab and click the Edit button on the tab; Select the "Administrators" option in the pop-up dialog box and check the "replace the owner of child containers and objects" checkbox, and then click OK.

Step three: Rename and copy files. After you complete the two DOS commands in the first step, follow the following two commands at the cursor at the command Prompt window:

MoveFile? X:windowswinsxs? X:windowswinsxs.moved MoveFile? X:windowswinsxs.link? X:windowswinsxs

The meanings of these two DOS commands are: rename the "WinSxS" folder under the "X:windows" directory to "winsxs.moved" and rename "Winsxs.link" under the "x:windows" directory to WinSxS.

After you finish renaming the folders and files, restart the system, and then copy all the contents under the "winsxs.moved" folder in the "X:windows" directory to the Windows, WinSxS directory of a hard disk partition outside the system disk (such as " D:windowswinsxs ") can be.

Step Fourth: Establish an association and delete the "winsxs.moved" folder. Run cmd again as an administrator, and then execute the following three commands at the cursor point:

Cd? Windows

RmDir WinSxS

mklink/x WinSxS D:windowswinsxs

The last two DOS commands mean deleting a link named "WinSxS" in the "X:windows" directory, and then creating a new link with the same name, pointing to the "D:windowswinsxs" directory.

When you finish creating a new link to the "D:windowswinsxs" directory named "WinSxS", restart the system, and then delete the folder named "Winsxs.moved" in the "X:windows" directory.

It is certainly a matter of course that Windows 7 can run faster by throwing the "fat" WinSxS folder under a partition other than the system disk, thereby freeing up more unused space for the system disk. A friend who needs it may as well try it.

If you accidentally remove the WinSxS, you can restore this: Grab a system disk and then enter Sfc/scannow in the start run to fix it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.