Like the article? Be sure to subscribe to our RSS feed and follow us on Twitter to stay up on recent content.


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:windowssystem32jscript.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:windowssystem32jscript.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:tempjscript.dll E:windowssystem32jscript.dll.