Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 412
  • Last Modified:

Cleaning System Drive Windows 2008 R2

ENvironement : Windows 2008 R2

Hello

My C:\ drive is saturating because on the Windows folder too large

C:\Windows is about 20Go
C:\WIndows\Winsxs\ about 15Go
C:\Windows\Temp about 600Mo (can I erase it? )
C:\WIndows\system32 about 3Go

What can I erase in the Windows folder?

THank you
0
gadsad
Asked:
gadsad
  • 9
  • 8
  • 7
  • +4
3 Solutions
 
RizzleCommented:
Remove un-needed applications.

Delete files inside the Temp folder but don't delete the folder itself.

Then delete the file extensions located in the folders below:

c:\windows\system32\certlog\*.log
c:\windows\system32\certlog\*.chk
c:\windows\system32\certlof\*.jrs

Also for easier clear up of un-necessary files enable Disk clean up using the link below and then run it and see what extra space you can free up! We have this enabled on a few servers at work and its great!!
(Once you have disk cleanup open click Clean up system files which is where the majority of the space can be freed up)

Don't delete C:\Windows / C:\Windows\Winsxs / C:\Windows\system32

You could install a tool called Treesize which tells you where majority of the space is being utilized.
0
 
Ivano ViolaSystem AdministratorCommented:
Just to add to what Roshan has suggested. If you're not sure what to delete I suggest you use a utility like CCleaner to remove temporary files from your system. This is a free program. https://www.piriform.com/ccleaner/download 
Download the free version. Don't delete folders/files manually if you're not sure what they do or are. You'll end up with a system that may not be usable.

IV
0
 
gadsadAuthor Commented:
Thank you

Nothing I ca do with WINSXS which is 15Go ?
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
RizzleCommented:
When using Disk Cleanup and then using "Clean up system files" this folder will be cleared accordingly.

This folder has the old system components for Windows but disk cleanup will clear this for you :)
0
 
VishalnarseCommented:
I suggest you to go through the given link it will clear the WINSXS size. Hope this help you :)
0
 
rindiCommented:
As has already been suggested, run the built-in Disk cleanup utility. After that also delete the contents of the C:\Windows\SoftwareDistribution\Downloads folder.

Then make sure you have run all Windows updates, if the server isn't already current. After the updates, repeat the above steps.

A current Windows 2008 r2 OS will remove whatever isn't necessary from the winsxs folder when you run the disk cleanup tool.

A further thing to do is to make sure that the system is setup NOT to create full memory dumps when it crashes, but rather only small memory dumps, and create a minimal pagefile on C:\ of 256MB size, and have a system managed pagefile on another partition.
0
 
RizzleCommented:
As Rindi deleted my link where I stated how to enable Disk Cleanup on Windows Server 2008, here are the instructions again

Open up Server Manager>click Add Features>Select Desktop experience>click install and then reboot server>Check under the system tools folder in the Start Menu and you should see Disk Cleanup listed.
0
 
VishalnarseCommented:
I suggest you to go through the given steps it will clear the WINSXS size. Hope this help you :)
0
 
VishalnarseCommented:
Hello rindi,

have you ask to the Author that he having problem with this.
0
 
VishalnarseCommented:
RINDI,

I AM GOING TO DISCONNECT THIS EE ACOUNT PERMANTLY, BY EE.
0
 
gadsadAuthor Commented:
I found that CLEANMGR was already installed on the server (by running manually CLEANMGR at the command prompt, it works)
However running cleanmgr gives me the possibility to delete only 470Mo on drive C and nothing regarding WINSXS

Should I install Desktop Experience (more complicated since server reboot will be necessary) to get another version of CLEANMGR ? or it will be same ?
0
 
RizzleCommented:
Install Desktop Experience and then run Disk Cleanup, have you tried what i stated in my above solutions?

When running Disk Cleanup you should get the option to Cleanup System Files and that is what will allow you to regain more space.
0
 
gadsadAuthor Commented:
Strange but I do not have the option to Cleaup System Files...
Any idea why ?
0
 
rindiCommented:
Either you haven't added the desktop experience feature, or your OS isn't up-to-date.
0
 
David Johnson, CD, MVPOwnerCommented:
cleanmgr.exe is the disk cleanup.. See it is the Disk Cleanup Wizard, no desktop experience needed
0
 
RizzleCommented:
Can you confirm you have followed my steps above, also are you sure you've added the Desktop Experience feature correctly?

Below is a screenshot of me adding the Desktop Experience feature in my test lab (Windows Server 2008 R2)

DesktopExperienceWindowsServer2008R2
Also David Your screenshot is on Windows 8/8.1, he is on about a Window Server 2008 r2.
0
 
gadsadAuthor Commented:
I do see cleanmgr.exe on the taskmanager
My Windows 2008 R2 is up to date for Windows updates
User Desktop Experience functionality is installed  (it is greyed and cannot be installed again)

But no way to have Cleanup System File option in cleanmgr

Strange...
0
 
rindiCommented:
What are the options the Disk Cleanup tool shows you? or is it still in the process of scanning calculating the space it will be able to freeup? That can take quite a long time, particularly if it hasn't been run for a long time.
0
 
gadsadAuthor Commented:
It aslk me to choose a drive to clean
I choose C drive
It calculates, (1 minute) and then allows me to clean up different kind of files (total 400Mo to cleanup)
 
But no option to "cleanup system files"
0
 
rindiCommented:
Then your drive is already pretty well cleaned up. It probably isn't called "Cleanup System Files", but rather "Windows Update Cleanup".

Did you delete the contents of the "C:\Windows\SoftwareDistribution\Downloads" folder I suggested earlier on? That folder isn't touched by "Disk Cleanup", but those files can be deleted as they are downloads of Windows updates that have been installed, so they are no longer needed.
0
 
RizzleCommented:
Has what I suggested in my first comment been done? Also has CCleaner been used to see if that helps clear any additional space.

Also for arguments sake I've tested this in my lab environment and the below shows Disk Cleanup and also the option I stated in my initial comments. (See Screenshot below)

mylab
Sorry Rindi but I have to disagree with your above line. Disk Cleanup and WSUS management console should be the only way to remove update files.
0
 
rindiCommented:
The WSUS console would only make sense if WSUS is installed. Normally that isn't the default. Besides the files in the downloads directory I mentioned can always be downloaded again by running Windows Updates.

WSUS itself should be setup in such a way to use another drive than C:\ anyway, as it can amount to a huge amount of space.
0
 
gadsadAuthor Commented:
Roshan

Disk cleanup looks exactly as yours BUT  The option "Clean up system files"  does simply not appear !!!

There is something I am missing but I do not know what
0
 
rindiCommented:
As I said, it could be called "Windows Update Cleanup" instead of "Cleanup System Files".
0
 
gadsadAuthor Commented:
I just launch CLEANMGR.EXE and neither option appears
no "Windows Update Cleanup" neither "Cleanup System Files"
0
 
RizzleCommented:
Have you tried running Disk Cleanup as administrator? (Maybe UAC is blocking the option appearing)

Maybe try logging in as a local admin on the server and then try opening Disk Cleanup

Also to ensure no corruptions in the OS open an elevated CMD Prompt and run SFC /Scannow

Rindi: I was just saying it in the context that you shouldn't manually touch the Software Distribution unless there is a corruption in the update feature or if you're using WSUS which has an inbuilt tool to remove un-needed update files.
0
 
Svet PaperovCommented:
The cleaning options you are looking for are available in Windows Server 2008 R2 after updating to Service Pack 1 and installing KB 2852386 http://support2.microsoft.com/kb/2852386

Then, you need to click on Clean up system files.
0
 
rindiCommented:
If, as the Author has told us, the server is up-to-date, then he has SP1 and the KB above installed, as it gets delivered via Windows updates. So there is no need to install it separately.
0
 
gadsadAuthor Commented:
KB 2852386 was automatically NOT installed as automatic Windows update (maybe it is a Recommended update that I usually do not install automatically).
SO I installed manually KB 2852386 and the "Windows Update Cleanup" option suddenly appeared in CLEANMGR.

It allows me to delete 5Go of files which is very nice

THank you
0
 
rindiCommented:
I never do Automatic updates, but rather run them manually, and I always also select the optional ones, unless they< are really optional, like windows life stuff etc.
0
 
gadsadAuthor Commented:
thanks
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

  • 9
  • 8
  • 7
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now