How to replace files under winsxs folder?

Under some circumstances, especially debugging software installation (using windows installer) related issue, you might want to replace some binary under winsxs folder, usually admin account does not have permission to winsxs folder, run following command under an elevated commandline window will enable the admin user has permission to manipulate the winsxs directory.

Takeown /f %WINDIR%\windows\winsxs /R

Comments

  • Anonymous
    January 04, 2013
    Thanks for the information. There is a mistake in the command - "Takeown /f %WINDIR%windowswinsxs /R" as WINDIR already contains "windows". The correct command should be: Takeown /f %WINDIR%winsxs /R