Posted On April 14, 2019

How to manually fix a corrupted system file

kimconnect 0 comments
blog.KimConnect.com >> Windows >> How to manually fix a corrupted system file

I’ve already written a PowerShell Script to perform this task. Search for it within this blog. Meanwhile, here are some lines to demonstrate the manual process of getting this done.

a. Seize ownership of file
takeown /f %WINDIR%\system32\{filename}

b. Grant Administrators access
icacls %WINDIR%\system32\{filename} /GRANT ADMINISTRATORS:F

c. Replace corrupted file with a known good copy
COPY SOURCE_FILE %WINDIR%\system32\{filename}

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Windows-clean-up.cmd

------------------------------Clear out TEMP files on a regular basis - this is best done at startup…

Windows: How to Disable F1 Help Center Function in Windows Explorer

Step 1: Create a Dummy File that does nothing   # Dummy-File-Creator.ps1$dummyFile="C:\Windows\dummy.exe"$output = new-object byte[]…

A Few Todos while Securing Apache Server

- Install mod_security - Set expose_php = Off in php.ini - Set SecResponseBodyAccess Off in…