Solved: Destination Folder Access Denied

written by aext on August 27, 2008 in Articles with one Comment

Someone maybe already known that solution how to replace one file in system32 folder in Windows Vista, but i thought it’s so helpful for dummies

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.