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

Started by Adventech, February 01, 2018, 12:36:52 PM

Previous topic - Next topic

Adventech

#1
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.


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:

  • cmd: cleanmgr /sageset: n (Allows you to save setting)
  • cmd: cleanmgr /sagerun: n (Starts Cleanmgr.exe using the save settings of "N"

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

Credit goes to:
hfiref0x user on GitHub
Adventech Group, Inc.
Bringing Integrity to Information Technology
https://adventech.net