How to replace System32 files in Windows 7

So, let’s say you want to install the latest fancy Windows 7 desktop themes, then you need to know how to replace system files in Windows 7! Well, at least if you are interested in modifying the shell and explorer skin, because then you have to replace system files like shell32.dll, explorer.exe or shellstyle.dll.

How to replace System32 files in Windows 7

Backup System Files

  • Backup system files
  • Try on Virtual PC first
  • Install multiple systems

0. Prerequisites. Before you replace any system files, make a backup. I am not responsible if your system won’t start or if you do any damage to your system and lose valuable data. Microsoft strongly advices you not to modify system files. Of course this does not keep us from modifying and hacking whatever there is, because we want to customize ANYTHING.

If you replace system files with corrupt files or if you replace the wrong files your system will NOT boot. Keep this in mind. If you are new to this, I would recommend to try everything on a virtual PC before you do it on a live system. Another advice: Installing multiple systems, e.g. XP, Vista and Windows 7 is a good idea and can come in handy for replacing system files, if you do something wrong you can always boot another system and undo the changes.

Take Ownership of a System File

1. StepTo rename or delete (don’t) system files you have to take ownership of the system file.

Download this script: Download TakeOwnership.zip and double-click on the .reg (registry) file to add an option “Take Ownership” to your contextual menu (the right-click menu).

Then you can right-click on your system files and take ownership of them. You can also do this via the command line using the command TAKEOWN /f . For more instructions, read this.

2. Step After  taking ownership of the system file, you can rename the system files (don’t delete them, you will still need your original system files). Rename your system file to .bak.dll or .bak.exe or something else that you WILL remember. When you try to rename a system file, you will be prompted via UAC to confirm the action, do it.

System files, like shell32.dll, are protected. So, if you want to copy a file to the system32 folder, it won’t work. Also renaming an existing file in system32 to for example shell32.dll won’t work.

Personally, I always rename system files via the command line.Run an elevated command prompt and use the syntax “rename path_to_system_file new_name” (without the quotes).

Example:

How to replace System32 files in Windows 7

Copy New Files to Windows 7 System Folder

3. StepOpen an elevated command prompt. Copy your new system files to the system32 folder (or wherever your system files are stored) to replace the old files.

Example:
My new shell32.dll was stored at E:/midnight/, so I enter:
copy E:/midnight/shell32.dll shell32.dll

Keep in mind that this will copy shell32.dll to the folder that you are currently in. After opening an elevated command prompt, this is by default /Windows/system32.

How to replace System32 files in Windows 7

How to replace Explorer.exe in Windows 7?

If you are looking for a way to replace the explorer.exe in Windows 7, then read a comprehensive guide here:
Replace System File: Explorer.exe

Ok, now you know how to replace system files in Windows 7. This should help many of you who want to install Windows 7 themes. A lot of the new shell themes require you to replace files like shell32.dll!

  • Remove From My Forums

  • Question

  • Hi,

    How can I replace file in windows server 2012 R2 System32 folder, I need to replace some file in that folder but a message appears says access denied, so, what is the permission setting that I should do to able to replace that target file in System32??

    Thanks in advance


    • Edited by Thursday, October 8, 2015 1:54 PM

Answers

  • As Frederick said, you may not able to delete/replace a file inside System32 folder.

    Access Denied generally means there is no enough permission. But you may still not able to replace it after taking ownership if file is in using by system.

    If it is not a system file, you can also test to replace it in Safe Mode (after taking ownership).


    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Support, contact .

    • Proposed as answer by MedicalSMicrosoft contingent staff Monday, October 12, 2015 8:24 AM
    • Marked as answer by MedicalSMicrosoft contingent staff Tuesday, October 20, 2015 10:04 AM

Where is the System32 folder in Windows 7?

A required Microsoft Windows system directory, the System32 directory is located in either C:\Windows\System32 or C:\Winnt\system32 directory. The system32 directory contains Windows system files and software program files, vital to the operation of the Windows operating system and software programs running in Windows.

Why is my system directory System32?

The System32 Folder is a core folder in Windows OS. It contains important operating system files and folders that are necessary for the smooth functioning of your system. If this folder gets deleted or corrupted, it can cause serious problems with your computer.