Solved

Cleaning System Drive Windows 2008 R2

Posted on 2014-10-12
33
321 Views
Last Modified: 2014-10-21
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
Comment
Question by:gadsad
  • 9
  • 8
  • 7
  • +4
33 Comments
 
LVL 13

Expert Comment

by:Rizzle
ID: 40375557
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
 
LVL 21

Expert Comment

by:ivanoviola
ID: 40375566
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
 

Author Comment

by:gadsad
ID: 40375567
Thank you

Nothing I ca do with WINSXS which is 15Go ?
0
 
LVL 13

Expert Comment

by:Rizzle
ID: 40375573
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
 
LVL 4

Expert Comment

by:Vishalnarse
ID: 40375575
I suggest you to go through the given link it will clear the WINSXS size. Hope this help you :)
0
 
LVL 87

Assisted Solution

by:rindi
rindi earned 250 total points
ID: 40375596
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
 
LVL 13

Assisted Solution

by:Rizzle
Rizzle earned 250 total points
ID: 40375597
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
 
LVL 4

Expert Comment

by:Vishalnarse
ID: 40375599
I suggest you to go through the given steps it will clear the WINSXS size. Hope this help you :)
0
 
LVL 4

Expert Comment

by:Vishalnarse
ID: 40375609
Hello rindi,

have you ask to the Author that he having problem with this.
0
 
LVL 4

Expert Comment

by:Vishalnarse
ID: 40375612
RINDI,

I AM GOING TO DISCONNECT THIS EE ACOUNT PERMANTLY, BY EE.
0
 

Author Comment

by:gadsad
ID: 40375627
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
 
LVL 13

Expert Comment

by:Rizzle
ID: 40375631
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
 

Author Comment

by:gadsad
ID: 40375640
Strange but I do not have the option to Cleaup System Files...
Any idea why ?
0
 
LVL 87

Expert Comment

by:rindi
ID: 40375645
Either you haven't added the desktop experience feature, or your OS isn't up-to-date.
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40375656
cleanmgr.exe is the disk cleanup.. See it is the Disk Cleanup Wizard, no desktop experience needed
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 13

Expert Comment

by:Rizzle
ID: 40375661
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
 

Author Comment

by:gadsad
ID: 40375673
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
 
LVL 87

Expert Comment

by:rindi
ID: 40375689
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
 

Author Comment

by:gadsad
ID: 40375693
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
 
LVL 87

Expert Comment

by:rindi
ID: 40375700
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
 
LVL 13

Expert Comment

by:Rizzle
ID: 40375764
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
 
LVL 87

Expert Comment

by:rindi
ID: 40375770
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
 

Author Comment

by:gadsad
ID: 40375775
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
 
LVL 87

Expert Comment

by:rindi
ID: 40375786
As I said, it could be called "Windows Update Cleanup" instead of "Cleanup System Files".
0
 

Author Comment

by:gadsad
ID: 40375796
I just launch CLEANMGR.EXE and neither option appears
no "Windows Update Cleanup" neither "Cleanup System Files"
0
 
LVL 13

Expert Comment

by:Rizzle
ID: 40375815
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
 
LVL 20

Expert Comment

by:Svet Paperov
ID: 40375845
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
 
LVL 87

Expert Comment

by:rindi
ID: 40375891
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
 

Accepted Solution

by:
gadsad earned 0 total points
ID: 40376492
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
 
LVL 87

Expert Comment

by:rindi
ID: 40376542
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
 

Author Closing Comment

by:gadsad
ID: 40393881
thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

OfficeMate Freezes on login or does not load after login credentials are input.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now