Comments
Item

How to delete / replace a system file

Published in Windows Vista Usability Tips by Steve Sinchak with 34,096 views and 2 comments
In many of the tweaks on this site I have directed you to delete or replace a system file. In Windows Vista this is not always as easy as it sounds since the system files are protected better by the file system than in XP. There are two steps that you need to do in order to be able to replace or delete a system file:
  1. First you need to take ownership of the file. Run takeown /f  "path and file name" to take ownership from a command prompt.
  2. Next, you need to give your account full control permissions on the file. Run cacls "path and file name" /G <your username>:F to get full control from a command prompt.
 
Free Computer Magazines and eBooks
 
Comments
gluiperd
2 years ago
At first it seems to work, since the commands are executed, but when i try to replace my pci.sys i still need permission.
mooch
One year ago
When I upgraded from Windows XP to Windows 7, it created a file named windows.old. It takes up alot of space. So, I tried to delete it, but notifies me, that I need permision to do so. Any suggestions?