But you can do so if you are running short on space by following the right direction. If you have a R2 server that runs short on the system drive, this post will definitely help you. Before I took the same steps on one of my servers, I used a free folder analysis tool called TreeSize Free to check my system drive to see how many spaces are occupied by this WinSxS folder, a total of 14GB.
The proper way of doing things like this is to use a built-in tool called Disk Cleanup. So, the first step we need to do is to install Disk Cleanup utility which is part of a system feature called Desktop Experience. A wizard pops up. It takes a few moments to finish. Some of you will have smaller WinSxS directories, some larger. Installing the update is just like installing any other update.
Just download and double-click on the. This is expected as we need to run Disk Cleanup in order for this to take effect. It also does not require a reboot to install the hotfix.
When installing Desktop Experience, it does require additional features. Just like the Windows 7 cleanup, mileage will vary. Also like Windows 7, the actual cleanup occurs during the next reboot. After the reboot, taking a look at the WinSxS directory, it has shrunk to the following:. Can I get a cheer? So maybe it is a bit much to expect IT admins to cheer, but can I get an appreciative grunt?
The script certainly beats the alternative of doing this all manually. The script will cleanup not only previous Windows Update files as well as Service Pack files. The script can be run from any directory on the server.
It has two parameters: LogPath and a switch called NoReboot. LogPath will allow the user to specify a log location or if none is specified, by default, the script will create a log in the same directory from which the script was executed. NoReboot allows the user to suppress reboots, but will require manual reboots by an administrator. Note : Make sure to check the log file to verify the process completed successfully and to verify there is no manual interaction required.
If the script has completed successfully, the log will end with CleanMgr complete. The script has several phases, using a registry key to keep track of progress.
After initial run, it inserts itself as a scheduled task, which runs as local system. The final phase removes the task. Depending on pending reboots, etc, we have found that this phase may generate a few reboots. Do not be concerned if the server reboots a few times. If you have installed the Desktop Experience feature and thus have the Disk Cleanup utility, you can select the following option to do the same thing:.
If you haven't done it before, it is certain to free up some space. What does that mean? Well, it means that this functionality is already built into a later operating system. In this case, that operating system is Windows Server R2. Not only do we have several mechanisms to automatically cleanup previous versions of Windows Update files like this update does, we even have the ability to more accurately determine the size of the component store aka the WinSxS directory.
The command to accurately determine the size of the component store on Windows Server R2 is as follows:. Running this command analyzes the component store to determine the size and whether cleanup is recommended. Notice in the screen shot that it provides you with the Windows Explorer reported size and the actual size:. Notice that the component store is much smaller than Windows Server R2 right out of the gate? Another win for Windows Server R2!
Looking at the breakdown of the 5. We see that Shared with Windows accounts for 3. Shared with Windows refers to the size of the files that are hardlinked between the WinSxS directory and the Windows location of the file. Answered by:. Archived Forums. Windows Server General Forum.
Sign in to vote. Thursday, April 12, AM. Please refer a recent discussion on same topic. Hi, Thank you for the post. Hi, Be sure to un-install any services and programmes that are not necessary and remember the more updates you install the greater space the OS will take up.
Hope it helps Lewis. Rick Tan: Your link appears to be broken. Wednesday, March 27, PM. Friday, March 29, PM. Friday, September 19, PM.
0コメント