freeing up space on 2008 R2 server

I have a vm 2008 R2 server that is a DC. I have 40GB C drive, with only 2.35 GB of free space.
I have uninstalled any unnecessary programs and files.
Is their any other way to get more space back? I really don't want to increase volume size , if I don't have too.
jim3725Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
40 GB is not really enough space for any modern Server or Workstation operating system.

I suggest you run Disk Cleanup and select most of the options presented for deletion. You may need to install Disk Cleanup from Desktop Experience on your server.

When Disk Cleanup comes up, there is a button to clean up system files. Click on that and it will run again to present the items for cleanup.

Disk Cleanup is the Microsoft tool and is safe to use.

You might wish to make plans to add more disk space to your server.
jim3725Author Commented:
thanks, Is their anything else that can be cleaned up, ie(updates)
David Johnson, CD, MVPOwnerCommented:
dism /online /cleanup-image /spsuperseded /hidesp
or
dism /online /cleanup-image /spsuperseded

Dism.exe /online /Cleanup-Image /StartComponentCleanup   (run monthly as a scheduled task)
An in-depth cleanup but you can't uninstall and update after doing this
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

if you don't want to add the desktop experience (not supported) Server 2008R2
Copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe  %systemroot%\System32
copy  C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui %systemroot%\System32\en-US 

Open in new window

http://blogs.technet.com/b/askpfeplat/archive/2014/05/13/how-to-clean-up-the-winsxs-directory-and-free-up-disk-space-on-windows-server-2008-r2-with-new-update.aspx
https://technet.microsoft.com/en-us/library/ff630161
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

jim3725Author Commented:
Server 2008 R2 sp2, should I download http://support.microsoft.com/kb/2852386 and use desktop experience, so that I can cleanup winsxs folder?
it's 18.2 GB size
JohnBusiness Consultant (Owner)Commented:
Yes, you should get Desktop Experience so you can use Disk Cleanup.

Disk Cleanup for Server 2008 will not much reduce Winsxs (same issue in Windows 7). Winsxs is a necessary folder for Windows to operate.  Do not manually delete anything here.

Look in your own folders for temporary or other files you might delete.

Mostly however, you do not have enough disk space.
rindiCommented:
Yes, the KB you linked to adds the windowsupdate cleanup option to the cleanup wizard. That can reduce the space used by the winsxs folder quite a lot.

What you can do additionally is to delete the contents of the C:\Windows\SoftwareDistribution\Downloads folder, as that only contains downloaded windowsupdates which aren't needed anymore after they have been installed (besides, it is always possible to download them again if necessary).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jim3725Author Commented:
Rindi, I am thinking that on folders within Dowloaad folder that are over 2 months old, that I could  delete those folders as an initial cleanup start. This is my dhcp dc server so I have to wait until all users are settled in, prior to installing or rebooting my dhcp dc server.
rindiCommented:
Do you mean the \SoftwareDistribution\Downloads folder? You can delete all the files in there immediately, unless of course there are still updates pending, as we've just had patch Tuesday. This doesn't have any influence on the server's function as a DHCP server.
DeadmanIT ConsultantCommented:
You can check with TreeSize application folder size used and delete wanted folder. it gives clear view of folder size. Then you can delete. Be sure before any folder that not affect your server.
jim3725Author Commented:
I have used treesize on other servers.
yes, \SoftwareDistribution\Downloads folder, I deleted folders prior to 2015, which gave me back 4gb space.
Not sure If I need to install desktop experience and but I will probably will, after I download http://support.microsoft.com/kb/2852386 for future cleanup.
rindiCommented:
You can get the cleanup wizard via the method ve3ofa expalined in his comment, or by adding the desktop experience. I would add that now, as it can reclaim quite a lot of space.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.