Solved

How to remove a file that only TrustedInstaller has privileges in Windows Vista

Posted on 2008-10-11
3
3,588 Views
Last Modified: 2012-05-05
I tired to remove a file yesterday but it said I do not have right to remove it...and then I view the properties of it, only TrustedInstaller has all privileges, ...how can I remove that file?
I believe that file is created by Visual C++ 2005 Redistribution.
0
Comment
Question by:mawingho
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 92

Expert Comment

by:nobus
ID: 22693125
try this :  www.bleepingcomputer.com/files/killbox.php                        killbox
0
 
LVL 2

Accepted Solution

by:
ioamnesia earned 500 total points
ID: 22704841
open up an elevated command prompt by pressing start then typing "command" and right click run as administrator. From the command line, run the following two commands:

takeown /f FULLPATHTOFILE /A
icacls FULLPATHTOFILE /grant Administrators:f

For example, to take control of imageres.dll in system32:
takeown /f c:\windows\system32\imageres.dll /A
icacls c:\windows\system32\imageres.dll /grant Administrators:F
0
 
LVL 2

Expert Comment

by:ioamnesia
ID: 22704886
P.S. You may need to enable the Administrator account and use a command prompt running with Administrator context.

Run an elevated command prompt

net user Administrator /active:yes
net user Administrator PASSWORD
runas /user:administrator cmd

type the password at the prompt then continue with taking ownership as above
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So who is this article for? If you are like most of the computer users out there, you probably only realize the meaning of 'System maintenance' after something goes wrong. This article is for you if you care about keeping your system working opti…
There are many reasons a PC runs slower than when it was new, ranging from malicious software intended to mess things up to simple general Windows use.  Your PC performance may slowly degrade over time without you noticing but when you buy a PC from…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question