At an elevated command prompt, type the following command, and then
press ENTER:
takeown /f Path_And_File_Name
For example, type
takeown /f E:\windows\system32\jscript.dll.
Type the following command, and then press ENTER to grant administrators full access to the file:
icacls Path_And_File_Name /GRANT ADMINISTRATORS:F
For example, type
icacls E:\windows\system32\jscript.dll /grant administrators:F.
Type the following command to replace the file with a known good copy
of the file:
Copy Path_And_File_Name_Of_Source_FilePath_And_File_Name_Of_Destination
For example, type
copy E:\temp\jscript.dll E:\windows\system32\jscript.dll.