Last active
March 29, 2018 18:26
-
-
Save jlafitte/734e8b30f84c5441823d84d4b627d0cd to your computer and use it in GitHub Desktop.
Windows Server 2008 Clean Manager Enabler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo Installing Disk Cleanup if not already installed. | |
if not exist %SYSTEMROOT%\System32\cleanmgr.exe ( | |
copy /Y C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe %SYSTEMROOT%\System32\ | |
) | |
if not exist %SYSTEMROOT%\System32\en-US\cleanmgr.exe.mui ( | |
copy /Y C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui %SYSTEMROOT%\System32\en-US\ | |
) | |
echo Now running Disk Cleanup. | |
start cleanmgr.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As documented here
This might also work in Windows Server 2012, I'm not positive.