Skip to main content

Freeing Disk Space on C:\ Windows Server 2008

 

I just spent the last little while trying to clear space on our servers in order to install .NET 4.5. Decided to post so my future self can find the information when I next have to do this.

I performed all the usual tasks:

  • Deleting any files/folders from C:\windows\temp and C:\Users\%UserName%\AppData\Local\Temp

  • Delete all EventViewer logs

    • Save to another Disk if you want to keep them

  • Remove any unused programs, e.g. Firefox

  • Remove anything in C:\inetpub\logs

  • Remove any file/folders C:\Windows\System32\LogFiles

  • Remove any file/folders from C:\Users\%UserName%\Downloads

  • Remove any file/folders able to be removed from C:\Users\%UserName%\Desktop

  • Remove any file/folders able to be removed from C:\Users\%UserName%\My Documents

  • Stop Windows Update service and remove all files/folders from C:\Windows\SoftwareDistribution

  • Deleting an Event Logs
  • Run COMPCLN.exe
  • Move the Virtual Memory file to another disk

However this wasn’t enough & I found the most space was cleared by using the Disk Cleanup tool “cleanmgr.exe” but of course this isn’t installed by default on Windows Server 2008. 


In order to get the Disk Cleanup you need to go to Server Manager > Add Features > and turn on “Desktop Experience”

desktop_experience

After running the Disk Cleanup I found this gem “Hibernation File Cleaner” was using almost 7.45 GB, I’m pretty sure I don’t need Hibernate functionality on an always on Web Server.

hibernation_file_cleaner

This was a big win & I could continue installing .NET 4.5

Comments

  1. Hi
    I have windows server 2008 rr2
    I have been gathering information about delete C:\Windows\SoftwareDistribution\Download. I have read that there won't be any problem if I delete the content of Download Folders, also found that I won't be able any more to rollback updates, is that right?

    Thanks

    Laura

    ReplyDelete
  2. From http://arstechnica.com/civis/viewtopic.php?p=23679173#p23679173

    Ardax wrote:

    It's a download cache, nothing more. LorDaMan's link is correct about stopping the Automatic Update service after a clean restart before deleting it, but it has nothing to do with rollback.

    Yeah, there's a separate spot for that: the WinSxS folder. Whee! (Do NOT just delete that one.)

    Quote:

    Generally speaking it's supposed to clean up after itself, but I've seen systems where that wasn't happening for some reason or another.

    I've seen it once in a great while but never did figure out why it didn't get cleaned up. All the systems I saw it get too big on were actually running surprisingly well. Just my odd luck, or something, I suppose.

    ReplyDelete
  3. Thank you!

    The Disk Cleanup asked me to restart, so I did not proceed.

    What I did is below, and cleared about a gig.

    "Stop Windows Update service and remove all files/folders from C:\Windows\SoftwareDistribution"

    ReplyDelete
  4. Thanks boss for this list. You saved my ass this morning.

    ReplyDelete
  5. Nice blog, here I had an opportunity to learn something new in my field. I have an expectation about your future post so please keep updates...Thanks..
    AWS Training in Chennai | Web Designing Training in Chennai

    ReplyDelete
  6. After reading this blog I am very strong in this topics and this blog is really helpful to all.. Explanation are very clear so it is easy to understand.. Thanks for sharing this blog…
    Big Data Analytics Training in Chennai | Python Training in Chennai

    ReplyDelete
  7. Nice Blog on Freeing Disk Space on C:\ Windows Server 2008.

    Devops Training in Bangalore
    itEanz

    ReplyDelete
  8. Thanks for this Will, lifesaver!

    ReplyDelete
  9. Replies
    1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru ASP.NET Essential Training Online . Nowadays Dot Net has tons of job opportunities on various vertical industry.
      or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

      Delete
  10. Howdy exceptional website! Does running a blog similar to this require a massive amount work? I have no understanding of programming but I had been hoping to start my own blog soon. Anyhow, should you have any recommendations or techniques for new blog owners please share. I know this is off topic nevertheless I just wanted to ask. Thanks! suntrust online cash manager login

    ReplyDelete
  11. Thanks for the post. As I too used to face this Freeing Disk space issue in C Drive.

    Please click on the link below.
    Ethical Hacking Courses in bangalore

    ReplyDelete
  12. GREAT BLOG
    very helpfull blog it was a pleasure reading your blog
    would love to read it more
    knowldege is not found but earned through hardwork and good teaching
    that being said click here to join us the next best thing in bangalore
    devops online training
    Devops Training in Bangalore

    ReplyDelete
  13. Thanks for your marvelous posting! It is very useful and good. Come on. I want to introduce the best aso services for you, I try it and I feel it is so good to rank app to top in app store search results, have you ever heard it?

    ReplyDelete
  14. Great Post Thanks for sharing with us. Actually my pc is very old hope this will clean up some space so that i can do my work even better in it. Sorry, for my wrong english I am also working on it by taking spoken english classes in marathahalli.

    ReplyDelete
  15. NIce information see this another one Salesforce



    Thanks
    Beattie

    ReplyDelete
  16. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
    Best Python Training Institute in Bangalore

    ReplyDelete
  17. Hurrah! After all I got a website from where I be able to really take useful data regarding my study and knowledge. outlook email login

    ReplyDelete
  18. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.

    Best Hadoop Training Institute in chennai

    ReplyDelete
  19. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    datascience training in chennai

    ReplyDelete
  20. Your new valuable key points imply much a person like me and extremely more to my office workers. With thanks; from every one of us.

    Digital Marketing Training in Chennai

    ReplyDelete
  21. Your blog is extremely amazing and I got some valuable data from your blog. This is extremely helpful for me. A debt of gratitude is in order for sharing such an instructive blog.
    Technology

    ReplyDelete
  22. Thank you Admin!
    Real time project center chennai provides EEE projects in chennai

    ReplyDelete
  23. Your blog is to a great degree astounding and I got some important information from your blog. This is to a great degree supportive for me. An obligation of appreciation is all together to share such an enlightening online journal.
    Education | Article Submission sites | MBA Talks | Technology

    ReplyDelete
  24. The information you posted here is useful to make my career better keep updates.I did Realtime Project Centers in Chennai at 1Crore Projects. Its really useful for me to make bright future in IT industry.

    ReplyDelete
  25. It is really very helpful for me and I have gathered some important information from this blog.

    Robotics Projects in Chennai | Vlsi Projects in Chennai.

    ReplyDelete
  26. Nice and good article. It is very useful for me to learn and understand easily.

    IEEE Android Projects in Chennai | IEEE NS2 Projects in Chennai.

    ReplyDelete
  27. Hey, Your post is very informative and helpful for us.
    In fact i am looking this type of article from some days.
    Thanks a lot to share this informative article.
    Excel Training In Hyderabad

    ReplyDelete

  28. awesome post.. thanks for sharing. expecting much in future.

    Selenium Training in Chennai

    ReplyDelete

  29. Thanks for the blog and it is really very useful one.hadoop training in chennai

    ReplyDelete
  30. Hadoop concepts, Applying modelling through R programming using Machine learning algorithms and illustrate impeccable Data Visualization by leveraging on 'R' capabilities.With companies across industries striving to bring their research and analysis (R&A) departments up to speed, the demand for qualified data scientists is rising.
    data science training in bangalore
    Big Data and Hadoop training Unlike traditional systems, Big Data and Hadoop enables multiple types of analytic workloads to run on the same data, at the same time, at massive scale on industry-standard hardware.myTectra Big Data and Hadoop training is designed to help you become a expert Hadoop developer. myTectra offers Big Data Hadoop Training in Bangalore using Class Room.
    hadoop training in bangalore
    Looking for best Machine Learning Training in Bangalore then join myTectra the leader in Machine Learning Training in Bangalore. Classroom & Online Training
    machine learning training in bangalore

    ReplyDelete
  31. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.

    Selenium Training in Chennai

    ReplyDelete
  32. Best Advanced Excel Training in bangalore offered by myTectra. India's No.1 Advanced MS Excel Institute. Classroom, Online and Corporate training
    excel training in bangalore

    ReplyDelete
  33. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.
    rpa training in Chennai | rpa training in bangalore

    ReplyDelete
  34. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
    safety course in chennai

    ReplyDelete
  35. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.

    Tableau Training in Chennai
    Tableau Training

    ReplyDelete
  36. This is a super article, Given such a great amount of data in it, These sort of articles keeps the clients enthusiasm for the site, and continue sharing more... Good fortunes. Nowadays tons of job opportunities on various vertical industry. Python Training in Chennai

    ReplyDelete
  37. Your post is really awesome. Your blog is really helpful for me to develop my skills in a right way. Thanks for sharing this unique information with us.
    - Learn Digital Academy

    ReplyDelete
  38. Nice blog..! I really loved reading through this article. Thanks for sharing such a
    amazing post with us and keep blogging... AngularJS Training in Chennai | Best AngularJS Training Institute in Chennai

    ReplyDelete
  39. Such a Great Article!! I learned something new from your blog. Amazing stuff. I would like to follow your blog frequently. Keep Rocking!!
    Blue Prism training in chennai | Best Blue Prism Training Institute in Chennai

    ReplyDelete
  40. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.
    machine learning training center in chennai

    machine learning with python course in Chennai

    Best Android training in velachery

    ReplyDelete
  41. Hi, Thanks a lot for your explanation which is really nice. I have read all your posts here. It is amazing!!!
    Keeps the users interest in the website, and keep on sharing more, To know more about our service:
    Please free to call us @ +91 9884412301 / 9600112302

    Openstack course training in Chennai | best Openstack course in Chennai | best Openstack certification training in Chennai | Openstack certification course in Chennai | openstack training in chennai omr | openstack training in chennai velachery

    ReplyDelete
  42. Wow!! Really a nice Article. Thank you so much for your efforts. Definitely, it will be helpful for others. I would like to follow your blog. Share more like this. Thanks Again.
    iot training in Chennai | Best iot Training Institute in Chennai

    ReplyDelete
  43. The best casino in the world, go to the online casino and win always and at all. slot machine slot machine casino lay, win and be a winner.

    ReplyDelete
  44. Thanks for your post very nice to read
    https://www.slajobs.com/advanced-excel-vba-training-in-chennai/

    ReplyDelete
  45. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
    Advanced AWS Training in Bangalore | Best Amazon Web Services Training Institute in Bangalore
    Advanced AWS Training Institute in Pune | Best Amazon Web Services Training Institute in Pune
    Advanced AWS Online Training Institute in india | Best Online AWS Certification Course in india
    AWS training in bangalore | Best aws training in bangalore

    ReplyDelete
  46. Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article. thank you for sharing such a great blog with us.
    microsoft azure training in bangalore
    rpa training in bangalore
    best rpa training in bangalore
    rpa online training

    ReplyDelete
  47. Thanks for sharing such a nice info.I hope you will share more information like this. please keep on sharing!

    aviationcourse
    Article submission sites

    ReplyDelete
  48. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
    Best Devops online Training
    Online DevOps Certification Course - Gangboard

    ReplyDelete
  49. Wonderful bloggers like yourself who would positively reply encouraged me to be more open and engaging in commenting.So know it's helpful.
    python Course in Pune
    python Course institute in Chennai
    python Training institute in Bangalore

    ReplyDelete
  50. Качественная светодиодная лента купить которую вы можете только на сайте Ekodio

    ReplyDelete
  51. The post good and really helpful for more stuff click on the link below.

    shriram earth

    ReplyDelete
  52. Thanks for such a great article here. I was searching for something like this for quite a long time and at last, I’ve found it on your blog. It was definitely interesting for me to read about their market situation nowadays.angularjs best training center in chennai | angularjs training in velachery | angularjs training in chennai | angular 4 training in chennai

    ReplyDelete
  53. I did not believe in all this nonsense from online casinos or any slot machines before but when I got to this site neat cash casino games it became all very interesting to me I figured out what was happening and started playing at all in the slot, slot machines, and all that is there and literally in a week I brought my first money without any problems

    ReplyDelete
  54. Thanks for providing wonderful information with us. Thank you so much.
    Regards,
    Devops Training in Chennai | Devops Certification in Chennai

    ReplyDelete
  55. I have been reading your posts regularly about this Elevator Pit Cleaning topic. I need to say that you are doing a fantastic job. Please keep up the great work.

    ReplyDelete
  56. You are doing a great job. I would like to appreciate your work for good accuracy
    Regards,
    best selenium training institute in chennai

    ReplyDelete
  57. Enjoyed your approach to explaining how it works, hope to see more blog posts from you. thank you!

    Technology
    yellowlocaldirectory

    ReplyDelete
  58. I gathered many useful informations about this topic. Really very useful for learning the skills and will continue your blog reading in the future.
    Blue Prism Training in Anna nagar
    Blue Prism Training in Chennai
    Blue Prism training chennai
    RPA Training in Anna nagar
    RPA Training in Adyar
    Data Science course in Anna nagar

    ReplyDelete
  59. You got a really useful blog I have been here reading for about half an hour about this Elevator Pit Waterproofing topic. I am a newbie and your post is valuable for me.

    ReplyDelete
  60. Attend The Python Training in Hyderabad From ExcelR. Practical Python Training Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Python Training in Hyderabad.
    python training in bangalore

    ReplyDelete
  61. Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.
    machine learning course in bangalore

    ReplyDelete
  62. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!
    machine learning course bangalore

    ReplyDelete
  63. Really nice and interesting post. I was looking for this kind of information Digital marketing in pune and enjoyed reading this one. Keep posting. Thanks for sharing.

    ReplyDelete
  64. Nice Post! Thank you for sharing very good post, it was so Nice to read and useful to improve my knowledge as updated one, keep blogging.
    ASW training in Electronic City

    ReplyDelete
  65. Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
    excel training in chennai | advanced excel training in chennai | excel classes in chennai | advanced excel course in chennai | ms excel training in chennai | excel courses in chennai

    ReplyDelete

Post a Comment

Popular posts from this blog

CPF Contribution Rates for new Singapore Permanent Residents (SPR’s)

Recently my wife and I applied and got approved for Singapore Permanent Residency. After completing the formalities the most significant immediate change is the contribution to CPF which is Singapore’s mandatory social security savings scheme requiring contributions from employers and employees. CPF contributions start from the date you obtain SPR status, which is the date of the entry permit.   Being a relentless budgeter I needed to know exactly how much I and my employer would have to contribute so that I could adjust my budget accordingly as the employee contributions get deducted from the monthly salary. After doing some research I discovered that there is a “graduated” approach to CPF contributions for new SPR’s where the contributions gradually increase in the first and second year and then upon reaching the third year are at the full amount. Note: There is an option for employers to contribute the full amount for year 1 and year 2 and the employee can use the graduated rate, b…

Implementing Custom Castle Windsor Facilities

If you’ve been following my posts you would know that I love Castle Windsor. One of the many useful features I have found is the Facility and I’m going to try and give a good example how you can make use of this. In a recent post I showed how you can add Cross-Cutting concerns to your application by using Interceptors.Now when configuring the Container you can explicitly configure each Interceptor per Service but when you have lot’s of components it can get pretty hard to maintain after a while and can also introduce subtle issues if someone forgets to configure it correctly.Below is how you would configure your Container without using a Facility. On the last line we are specifying the Interceptor explicitly. public void Configure() { container = new WindsorContainer(); container.Register( Component.For<CacheInterceptor>(), Component.For<ICacheProvider>() .ImplementedBy<WebCache…