Windows 7 Showcase Windows Phone News  
Comments
Item

How to delete / replace a system file

Published 2/11/2007 in Windows Vista Usability Tips by Steve Sinchak with 30,962 views
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.
 
Comments
gluiperd
At first it seems to work, since the commands are executed, but when i try to replace my pci.sys i still need permission.
311 days ago
mooch
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?
148 days ago
 
Post a Comment

Name  

URL