You can follow the steps at the bottem of this article:
929833 Some Windows Vista functions may not work, or Windows Vista may stop
. At an elevated command prompt, type the following command, and then
takeown /f Path_And_File_Name
For example, type takeown /f E:\windows\system32\jscript.dll .
2. Type the following command, and then press ENTER to grant
administrators full access to the file:
icacls Path_And_File_Name /GRANT ADMINISTRATORS:F
For example, type icacls E:\windows\system32\jscript.dll /grant
First you have take ownership of the files and folders, Then you have
grant permissions to be able to delete them.
This posting is provided "AS IS" with no warranties, and confers no rights
>Thread-Topic: Trusted Installer
>From: =?Utf-8?B?V2FsdE4=?= <WaltN@discussions.microsoft.com>
>Subject: Trusted Installer
>Date: Tue, 5 Jun 2007 12:58:00 -0700
>X-Newsreader: Microsoft CDO for Windows 2000
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2826
>Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.windows.vista.security:6095
>NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
>Here's how I got into trouble: I wanted to test a full File and Folder
>restore from my File and Folder backups. I redirected the restore to a
>folder under the control of my account (Administrator privileges). The
>restore went fine and checked out satisfactorily. Satisfied, I wanted to
>delete all the files and folders in the test folder I created. I was able
>delete everything except the Windows Media Player and Windows Gadgets
>I tried everything I could think of to delete these, but I failed.
>Apparently only the "Trusted Installer" has the required privileges.
>What can I do to get rid of the restored files and folders?