View Single Post
  #9 (permalink)  
Old 02-28-2007
Jimmy Brush
 

Posts: n/a
Re: How to delete folders from previous install?
Hello,

Taking ownership of files does not automatically grant you "complete
control" over the files. The only thing ownership of an object entitles you
to do is to be able to add/remove permissions, even if the object does not
explicitly give you that privilege.

The problem you are running into is that even though you have ownership of
the files, you are not granted full control over the files, as you have
noticed; or, there are files that are explicitly denying you permission,
which take precendence over allow permissions.

As long as there are no deny permissions blocking you (which should be the
case unless you upgraded from another version of Vista), the following steps
should work:

1) open admin command prompt

- Click start
- Type: cmd
- right-click it under programs
- click Run As Administrator

2) take ownership of everything

In the command prompt:
cd ..\..\windows.old
takeown /F . /A /R /D Y

3) grant yourself permission to everything

In the command prompt:
icacls . /grant:r AdministratorsF) /T /L /Q

4) Delete everything

- Make sure you close any explorer or command windows that are looking at or
inside windows.old. If you don't, you will receive an error while performing
this step.

In the command prompt:
cd ..
rmdir /S /Q windows.old

That should do it

--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/

Reply With Quote