Take Ownership of Vista System Files

Posted on September 30th, 2007 by Jason

When tweaking Vista, at some point you will probably run in to a situation where you need to modify, move or even delete a system file. In Vista, system files are protected by the TrustedInstaller service and Windows File Protection by default. Below, I will show you how you can take ownership of system files and grant yourself the necessary permissions so that you can get your task done.

Warning: Modifying, moving or deleting system files on Vista can have adverse effects on your operating system and in some cases render the system inoperable. Be sure that you know what you are doing prior to proceeding with these instructions.

1. Go to Start>> All Programs>> Accessories>> Command Prompt
2. Right click Command Prompt
3. Select Run as administrator (click continue at the UAC prompt)
4. At the command prompt, type in: takeown /f c:\windows\system32\sysfile.exe

Note: Use the correct path to the system file. “sysfile.exe” is an example only.

5. Press Enter

You should receive a message that states your user name now has ownership of the file. However, you still lack the permissions to modify the file so lets continue.

6. Back at the command prompt, type in: icacls c:\windows\system32\sysfile.exe /grant username:f

Note: Substitute “sysfile.exe” with the correct file name and “username” with your user name.

7. Press Enter
8. You should receive a message that the command completed successfully.

At this point, you have taken ownership of the file and you have the necessary permissions to modify, move or delete the file. If any of the above instructions did not complete successfully, you can try executing the commands in safe mode.

Liked this article? Read another similar article.
Share and Enjoy:
  • del.icio.us
  • StumbleUpon
  • Facebook
  • Google
  • Furl
  • Live
  • MisterWong.DE
  • NewsVine
  • Reddit
  • Yahoo! Buzz
  • MySpace
  • Slashdot
  • Technorati
  • YahooMyWeb
  • BlinkList
  • description
  • Fark
  • Netvouz
  • Spurl
  • MisterWong
  • Webnews.de
  • Blogsvine
  • description
  • IndiaGram
  • kick.ie
  • Taggly
  • E-mail this story to a friend!
  • Print this article!

Related posts

3 Responses to “Take Ownership of Vista System Files”

  1. StumbleUpon » Your page is now on StumbleUpon! on 02 Oct 2007 at 12:37 am #

    [...] Your page is on StumbleUpon [...]

  2. max on 19 Feb 2008 at 10:41 pm #

    Hi there,
    seems like i messed up some permissions on my computer. what I did like I went to C:\ and right clicked it and went to security and then advance.
    I try to took the ownership of all the files on C:\ drive. and now I am being the owner still can’t install some applications..
    As you have said already that trusted installer is the default permissions assigned to system.

    can you help me to get it back the way it was before.like factory installed.
    I am using vista ultimate.

    Thanks

  3. John on 13 Aug 2008 at 3:14 pm #

    4. At the command prompt, type in: takeown /f c:\windows\system32\sysfile.exe

    Note: Use the correct path to the system file. “sysfile.exe” is an example only.

    How do I determine the correct path to my systems files?

Leave a Reply