Solved

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

Posted on 2008-10-11
3
3,585 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
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
Printer Spooler Service Failing Over and Over 9 532
Quickbooks & Networking with Windows 7 590
Trying to connect to Oracle database from Visio 8 992
Windows permissions error 17 452
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…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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