Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Windows 8 and 8.1 (Professional 64-bit in my case) has an automatic maintenance mode that it periodically runs. You can see that periodically when one of the system tray icons changes appearance and has the text maintenance mode running.

I did some digging and found out that Windows automatic maintenance does two things:

  1. .Net Optimization
  2. Disk defragmentation

I understand disk defragmenting, but what is ".Net Optimization" and what exactly does Microsoft Windows do to optimize .Net and is that a task that takes a long time?

I am a software developer and work with .Net technologies, so I understand what the Microsoft .Net Framework is, where Windows stores the assemblies (GAC) and all that. The framework is a bunch of files sitting in the Windows GAC and registry entries. There is no task that would seem to need optimizing and then not any task that would take oodles of time.

share|improve this question
its connected to the .NET Optimization service… – Ramhound Mar 6 '14 at 17:50
up vote 1 down vote accepted

My best guess is that it compiles CIL code to native code so that it doesn't have to do that when you run .Net applications.

A question on the MSDN forums asks What is the Microsoft .net Optimization service? and one of the answers points out:

The native image cache contains code that is compiled ahead of time (instead of as the program is being run). When a .NET program is installed, it may instruct this service to compile the native image in the background.

Even though this question refers to the .Net Optimization service, I would expect that the task you're referring to basically starts this service and lets it run the optimization for all queued items.

share|improve this answer
I read that same questionable MSDN article from the link given in the comment. Basically it seems that the maintenance mode is poorly implemented and poorly thought out. – Sarah Weinberger Mar 6 '14 at 19:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.