Solved

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

Posted on 2008-10-11
3
3,593 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

The main issue when installing Vista and XP in dual boot is when you have to reinstall any of the two when something fails, let's say a hard disk failure, a lost partition, virus, etc. What commonly happens is that you lose all your hard work config…
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…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

707 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