Tech for Techs

Operating Systems => Windows Server 2012 => Topic started by: Adventech on February 01, 2018, 12:36:52 PM

Title: How to Install Cleanmgr.exe on Windows 2012 R2 with Update 1
Post by: Adventech on February 01, 2018, 12:36:52 PM
PROBLEM:

How to Install Cleanmgr.exe on Windows 2012 R2 with Update 1?

With the new update to Microsoft Windows 2012 R2 you can no longer copy the files out of WinSXS for Cleanmgr without recieving the following error.
(http://adventech.net/downloads%5Ctechfortechs%5CCleanmgr_Windows2012R2Update1_Error.jpg)

SOLUTION:

1.) Go to https://github.com/hfiref0x/SXSEXP and download binary sxsexp64.exe
2.) Place file in C:\temp (if that folder doesn't exist create it first)
3.) Run the following commands from an Administrator CMD prompt

C:\temp\sxsexp64.exe "C:\Windows\WinSxS\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui" "%SystemRoot%\System32\en-US\cleanmgr.exe.mui"
C:\Temp\sxsexp64.exe "C:\Windows\WinSxS\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe" "%SystemRoot%\System32\cleanmgr.exe"
(This will decompress the files from the WinSXS folder and into the proper directories)

4.) Launch Cleanmgr.exe or run cleanmgr in command prompt

_________________________________________________________________________________
Notes:

Attached:
sxsexp32.exe and sxsep64.exe Files from the GitHub website.

Credit goes to:
(https://avatars0.githubusercontent.com/u/10708977?s=400&v=4)hfiref0x user on GitHub