Skip to main content

Disk Cleanup on Windows Server 2008 Without Installing Desktop Experience

Windows Server 2008 is something every admin likes to work with (sense the sarcasm over the internet, Dr Cooper?). 

The Problem

Believe me or not, but an essential (Windows) tool, cleanmgr.exe, is not present in Windows Server 2008 and Windows Server 2008 R2 by default.
This is by Microsoftā€™s, at the very least hard-to-explain, design, who likely believe itā€™s more of a desktop experience feature than a must-have tool.
Why on Earth would I want to install Windows Photo Gallery and Windows Media Player on a server just to have Disk Cleanup? Moreover, it requires a server restart.
Bonus: if you want to use WebClient service, you need to have Desktop Experience feature installed too.

The Solution

Windows Server 2008 (64-bit)

Copy the following files:
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.0.6001.18000_none_c962d1e515e94269\cleanmgr.exe C:\Windows\System32\
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.0.6001.18000_en-us_b9f50b71510436f2\cleanmgr.exe.mui C:\Windows\System32\en-US\
Run the cleanmgr.exe:
> cleanmgr.exe

Windows Server 2008 R2 (64-bit)

Copy the following files:
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe C:\Windows\System32\
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui C:\Windows\System32\en-US\
Run the cleanmgr.exe:
> cleanmgr.exe

Comments

Popular posts from this blog

ESM Log size is full - How to clear

                                            ESM log Size is full ---- How to Clear If your getting the below error in event viewer you can follow the below steps and solve it. Generally when we open Dell open manage console, suddenly we see that Hardware log status is showing critical and event logs are filling saying ESM log is full... We need to clear the ESM logs regularly before it reaches 100%. However please follow the below command and procedure before clearing the logs. Open Dell Manage console, go to logs tab. Then select ESM logs, you will see an export option. Export the logs and save it on local drive for future use. Now open command prompt and Runas administrator. Type omconfig system esmlog action=clear Done, ...

The system cannot log you on due to the following error: The RPC server is unavailable

IF your login to windows 2003 and your getting the below error then do the below steps and you can login to the PC. login to any server in the same subnet. open CMD in elevated permission open registry editor go to File---------->connect to network registry type the effected server name and open it go to the below location and create a new DWORD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server Create a new key selecting Dword and name it as IgnoreRegUserConfigErrors now double click it and give a value as 1. after that do the RDP and it will work.
  Remove "Open in new window" option from Windows Explorer right-click menu Hi Guys today we will see how to block the "Open in New Windows" tab in the file explorer menu. Please see the below screenshot which is showed below. Create the appropriate REG file(s) using this code and then run them: ADD 'Open in a New Window' Option Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\opennewwindow] "MUIVerb"="@shell32.dll,-8517" "MultiSelectModel"="Document" "OnlyInBrowserWindow"="" "LaunchExplorerFlags"=dword:00000001 [HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command] "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}" REMOVE 'Open in a New Window' Option Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\Folder\shell\opennewwindow] "MUIVerb"="@shell32.dll,-8517" "MultiSelectModel"="Document...