February 19, 2018, 04:23:05 PM

Author Topic: How to Install Cleanmgr.exe on Windows 2012 R2 with Update 1  (Read 88 times)

Offline Adventech

  • Bringing Integrity to Information Technology
  • Administrator
  • Jr. Member
  • *****
  • Posts: 60
  • Karma: +0/-0
    • Adventech Group, Inc.
How to Install Cleanmgr.exe on Windows 2012 R2 with Update 1
« Reply #1 on: February 01, 2018, 10:36:52 AM »
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

Code: [Select]
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"
Code: [Select]
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
« Last Edit: February 01, 2018, 10:49:08 AM by Adventech »
Adventech Group, Inc.
Bringing Integrity to Information Technology
www.adventech.net