HowTo Vista
HowTo: Modify Protected System Files in Vista
Windows Vista by default employs User Account Control (UAC) for better security, but it also brings some obstacle when you try to modify(replace or delete) a system file. This can be achieved by taking ownership of the file and then grant yourself full control over the file.
Without turning off UAC, we need to get an elevated command prompt first:
1. Click the Start Button
2. Click All Programs->Accessories and find Command Prompt
3. Right click the Command Prompt and select Run As Administrator
4. Click Continue on the UAC prompt.
Alternatively, you can get my sudo utility and simply type sudo cmd in search box.
Once we get the elevated command prompt, following the steps below. Let’s take the Mystify screensaver as example, filename Mystify.scr, located in C:\Windows\System32 and the user is logged in as Administrator.
1. Type the command takeown /f filename
takeown /f c:windowssystem32mystify.scr
This command support wildcard, for example, you can use
takeown /f c:windowssystem32*.scr
to get the ownership of all the screensavers in system32.
A message will be displayed if this completed successfully.
2. Type icacls filename /grant UserName:F, in our case, it’s
icacls c:windowssystem32mystify.scr /grant Administrator:F
the last F is the privilege bit, and it stands for Full Access here.
A message will be displayed as this completed successfully.
That’s all, and now you can modify the files using any other programs.
The above steps can also be done via GUI, in case you are not comfortable with the command lines.
1. Right-click the file that you want to take ownership of, and then click Properties.
2. Click the Security tab, and then click OK on the Security message (if one appears).
3. Click Advanced, and then click the Owner tab.
4. In the Name list, click Administrator, or click the Administrators group, and then click OK. The administrator or the Administrators group now owns the file. To change the permissions on the files and folders under this folder, go to step 5.
5. Click Add.
6. In the Enter the object names to select (examples) list, type the user or group account that you want to give access to the file. For example, type Administrator.
7. Click OK.
8. In the Group or user names list, click the account that you want, and then select the check boxes of the permissions that you want to assign that user.
9. When you are finished assigning permissions, click OK.




DigitMemo.com » HowTo: Fix The Built-in Weather Gadget in Vista said
am September 23 2007 @ 7:31 am
[…] HowTo: Modify Protected System Files in Vista Sep […]
DigitMemo.com » Howto: The Complete Mac Leopard Installation and Windows Multi-Boot Setup Guide said
am October 30 2007 @ 11:10 am
[…] partition, load Windows. Open a command prompt(if you’re using Vista, make sure it’s running as administrator). Use diskpart to mark the Windows partition […]
Installing Mac OS X 10.5 Leopard on an IBM x86 - Step by step Guide said
am November 8 2007 @ 12:47 pm
[…] Windows partition, load Windows. Open a command prompt(if you’re using Vista, make sure it’s running as administrator). Use diskpart to mark the Windows partition […]
How to dual boot Vista and Leopard « .:: Tech Steve’s Weblog ::. said
am September 6 2008 @ 4:50 am
[…] Windows partition, load Windows. Open a command prompt(if you’re using Vista, make sure it’s running as administrator). Use diskpart to mark the Windows partition […]
Travis Holman said
am November 12 2008 @ 5:51 pm
7ryg2f9wbbsur4jc