Windows Server 2008 R2 Cleanup Windows Directory
Problem:
Your hard drive is full and you run your favorite spacesniffer to see that WINSXS and CBS logs are the problem.
Solution:
Key info:
paste this into a command prompt:
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
This ONLY works on 2008R2. The files are already present on those locations, you just need to copy them.
Then just run cleanmgr.exe from start, run.
Key info:
To free up disk space we have been deleting everything below the CBS.log file as this is in use and cannot be deleted. Everything below that top fileCBS.log is fair game even the .cab files.