Skip to main content

About PowerShell

Go Search
My Blog
Stadsdraken
  

About PowerShell > Posts > Running “cleanmgr.exe” on server 2008…
Running “cleanmgr.exe” on server 2008…

When running out of disk space on Server 2008 you might want to run "cleanmgr.exe". But it's not there on Server 2008.

When searching the internet about this, all returned answers said I'd have to install the "Desktop experience" feature. But I certainly don't want to install the "Desktop experience" on a server. I do not need Windows Mediaplayer, photoviewer etc. on a production server, so I don't want to install this feature.

I copied "cleanmgr.exe" from a server on which I did install the "Desktop Experience" feature to the production server in %systemroot%\System32 and started "cleanmgr.exe". But nothing happened. Then I searched for a matching .dll, but none existed/worked.

Back to the server with the "Desktop Experience" feature and ran "Process Explorer" to find the missing files.

And here it is, "%Systemroot%\System32\en-US\Cleanmgr.exe.mui" among other *.mui's. But when checking the production server only "cleanmgr.exe.mui" is missing.

Copied the file to "%systemroot%\System32\en-US" and started "cleanmgr.exe" again. And guess what:

Finally, cleanmgr without installing the "Desktop Experience" feature on server 2008!

Comments

There are no comments yet for this post.