Microsoft Windows Vista Community Forums - Vistaheads
FREE Anti Rootkit Software for Vista Users




Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.


Registry Mechanic - Free Scan Now

How to delete folders from previous install?

microsoft.public.windows.vista.file management



Click On Your Flag for Translation
Simplified Chinese French Spanish Italian Portugeuse Japanese German Dutch
Reply
  #1 (permalink)  
Old 02-28-2007
Piotr Wozniacki
 

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

This has been asked and answered many times, but none of the answers semms
to work here. I started installing Vista from the XP, but for some reaosn
interupted and installed from the DVD boot. Unfortunately, the old
installation files were renamed "windows.old" and I can't get rid of them!
Tried from both OS'es (XP and Vista); tried taking ownership; tried running
a command prompt as administrator - still no rights to delete. What gives,
besides re-formatting?!!

Piotr

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-28-2007
Ray
 

Posts: n/a
Re: How to delete folders from previous install?
Try opening the folders and then deleting the individual folders/files, I
found that I had to do it this way. It seems that the permissions don't
carry down all the way.
There must be a better way of doing it though, I hope someone knows and
answers.

Ray

"Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
> Hi,
>
> This has been asked and answered many times, but none of the answers semms
> to work here. I started installing Vista from the XP, but for some reaosn
> interupted and installed from the DVD boot. Unfortunately, the old
> installation files were renamed "windows.old" and I can't get rid of them!
> Tried from both OS'es (XP and Vista); tried taking ownership; tried
> running a command prompt as administrator - still no rights to delete.
> What gives, besides re-formatting?!!
>
> Piotr


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2007
=?Utf-8?B?SGF2ZSBhIEdv?=
 

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

I have had to use this same procedure in XP


"Ray" wrote:

> Try opening the folders and then deleting the individual folders/files, I
> found that I had to do it this way. It seems that the permissions don't
> carry down all the way.
> There must be a better way of doing it though, I hope someone knows and
> answers.
>
> Ray
>
> "Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
> news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
> > Hi,
> >
> > This has been asked and answered many times, but none of the answers semms
> > to work here. I started installing Vista from the XP, but for some reaosn
> > interupted and installed from the DVD boot. Unfortunately, the old
> > installation files were renamed "windows.old" and I can't get rid of them!
> > Tried from both OS'es (XP and Vista); tried taking ownership; tried
> > running a command prompt as administrator - still no rights to delete.
> > What gives, besides re-formatting?!!
> >
> > Piotr

>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2007
Piotr Wozniacki
 

Posts: n/a
Re: How to delete folders from previous install?
Doesn't work, either. Each single file - even though I'm the owner - is
impossible to be deleted. Stupid. Do I really need to format, and
reinstal?!!

Piotr


"Have a Go" <HaveaGo@discussions.microsoft.com> wrote in message
news:F0C66B9D-E412-43F9-806D-38C6353F612B@microsoft.com...
>
> I have had to use this same procedure in XP
>
>
> "Ray" wrote:
>
>> Try opening the folders and then deleting the individual folders/files, I
>> found that I had to do it this way. It seems that the permissions don't
>> carry down all the way.
>> There must be a better way of doing it though, I hope someone knows and
>> answers.
>>
>> Ray
>>
>> "Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
>> news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
>> > Hi,
>> >
>> > This has been asked and answered many times, but none of the answers
>> > semms
>> > to work here. I started installing Vista from the XP, but for some
>> > reaosn
>> > interupted and installed from the DVD boot. Unfortunately, the old
>> > installation files were renamed "windows.old" and I can't get rid of
>> > them!
>> > Tried from both OS'es (XP and Vista); tried taking ownership; tried
>> > running a command prompt as administrator - still no rights to delete.
>> > What gives, besides re-formatting?!!
>> >
>> > Piotr

>>
>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2007
R. C. White, MVP
 

Posts: n/a
Re: How to delete folders from previous install?
Hi, Piotr.

Let's get more specific on a couple of points:

> Tried from both OS'es (XP and Vista); tried taking ownership;


Ownership of what? Owned by whom?

Can you create a new User (if you haven't already) named "Piotr" (perhaps),
and have that User take Ownership of the entire drive, or, at least, the
entire \Windows.old folder? In my experience, this took much longer than I
expected because it had to take ownership of each file and folder, one at a
time. But when it finally ends, the User Piotr should be able to delete the
folder.

Let us know, step by step, exactly what you did and exactly what error
message or other result you saw.

> tried running a command prompt as administrator - still no rights to
> delete.


In the Command Prompt window, what command and parameters did you use? As
I'm sure you know, we don't "delete" a folder, we "remove" a directory. If
we enter simply "rd \windows.old", we probably will get a message that the
directory is not empty. If we append the /s switch, it will try to remove
the entire directory tree, including all subfolders and files, even though
not empty - but it will first ask us "Are you sure".

Again, please tell us exactly what you typed in the Command Prompt window
and exactly what results you saw.

RC
--
R. C. White, CPA
San Marcos, TX
rc@grandecom.net
Microsoft Windows MVP
(Running Windows Mail 7.0 in Vista x64)

"Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
> Hi,
>
> This has been asked and answered many times, but none of the answers semms
> to work here. I started installing Vista from the XP, but for some reaosn
> interupted and installed from the DVD boot. Unfortunately, the old
> installation files were renamed "windows.old" and I can't get rid of them!
> Tried from both OS'es (XP and Vista); tried taking ownership; tried
> running a command prompt as administrator - still no rights to delete.
> What gives, besides re-formatting?!!
>
> Piotr


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-28-2007
Piotr Wozniacki
 

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

I didn't create a new account; being logged as "Piotr" I took the ownership
of the windows.old folder, including subfolder and files. I then checked the
security setting for a couple of deeply burried files - the ownership is
mine all right.

When trying to delete from Windows Explorer, there were 2 stages: first, the
system informed if I want the administrator allowing me to delete; I clicked
OK and - after a while - the error message "Accessd denied" appeared for
each consecutive file (after pressing Skip).

Very similar was how it looked in the Administrators console; I typed "rmdir
/s windows.old"; the system asked me if I'm sure, I accepted and there was a
bunch of error messages about trying to delete individual files with access
denied again.

What's my next move?

Piotr

"R. C. White, MVP" <rc@grandecom.net> wrote in message
news:336D6612-380C-44B6-BBAE-369FE9321017@microsoft.com...
> Hi, Piotr.
>
> Let's get more specific on a couple of points:
>
>> Tried from both OS'es (XP and Vista); tried taking ownership;

>
> Ownership of what? Owned by whom?
>
> Can you create a new User (if you haven't already) named "Piotr"
> (perhaps), and have that User take Ownership of the entire drive, or, at
> least, the entire \Windows.old folder? In my experience, this took much
> longer than I expected because it had to take ownership of each file and
> folder, one at a time. But when it finally ends, the User Piotr should be
> able to delete the folder.
>
> Let us know, step by step, exactly what you did and exactly what error
> message or other result you saw.
>
>> tried running a command prompt as administrator - still no rights to
>> delete.

>
> In the Command Prompt window, what command and parameters did you use? As
> I'm sure you know, we don't "delete" a folder, we "remove" a directory.
> If we enter simply "rd \windows.old", we probably will get a message that
> the directory is not empty. If we append the /s switch, it will try to
> remove the entire directory tree, including all subfolders and files, even
> though not empty - but it will first ask us "Are you sure".
>
> Again, please tell us exactly what you typed in the Command Prompt window
> and exactly what results you saw.
>
> RC
> --
> R. C. White, CPA
> San Marcos, TX
> rc@grandecom.net
> Microsoft Windows MVP
> (Running Windows Mail 7.0 in Vista x64)
>
> "Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
> news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
>> Hi,
>>
>> This has been asked and answered many times, but none of the answers
>> semms to work here. I started installing Vista from the XP, but for some
>> reaosn interupted and installed from the DVD boot. Unfortunately, the old
>> installation files were renamed "windows.old" and I can't get rid of
>> them! Tried from both OS'es (XP and Vista); tried taking ownership; tried
>> running a command prompt as administrator - still no rights to delete.
>> What gives, besides re-formatting?!!
>>
>> Piotr

>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-28-2007
Jane C
 

Posts: n/a
Re: How to delete folders from previous install?
Which build of Vista? Disk Cleanup can now remove those pesky windows.old
folders left behind after install.

--
Jane, not plain 64 bit enabled :-)
Batteries not included. Braincell on vacation ;-)
"Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
news:em6l99$b92$1@nemesis.news.tpi.pl...
> Hi,
>
> I didn't create a new account; being logged as "Piotr" I took the
> ownership of the windows.old folder, including subfolder and files. I then
> checked the security setting for a couple of deeply burried files - the
> ownership is mine all right.
>
> When trying to delete from Windows Explorer, there were 2 stages: first,
> the system informed if I want the administrator allowing me to delete; I
> clicked OK and - after a while - the error message "Accessd denied"
> appeared for each consecutive file (after pressing Skip).
>
> Very similar was how it looked in the Administrators console; I typed
> "rmdir /s windows.old"; the system asked me if I'm sure, I accepted and
> there was a bunch of error messages about trying to delete individual
> files with access denied again.
>
> What's my next move?
>
> Piotr
>
> "R. C. White, MVP" <rc@grandecom.net> wrote in message
> news:336D6612-380C-44B6-BBAE-369FE9321017@microsoft.com...
>> Hi, Piotr.
>>
>> Let's get more specific on a couple of points:
>>
>>> Tried from both OS'es (XP and Vista); tried taking ownership;

>>
>> Ownership of what? Owned by whom?
>>
>> Can you create a new User (if you haven't already) named "Piotr"
>> (perhaps), and have that User take Ownership of the entire drive, or, at
>> least, the entire \Windows.old folder? In my experience, this took much
>> longer than I expected because it had to take ownership of each file and
>> folder, one at a time. But when it finally ends, the User Piotr should
>> be able to delete the folder.
>>
>> Let us know, step by step, exactly what you did and exactly what error
>> message or other result you saw.
>>
>>> tried running a command prompt as administrator - still no rights to
>>> delete.

>>
>> In the Command Prompt window, what command and parameters did you use?
>> As I'm sure you know, we don't "delete" a folder, we "remove" a
>> directory. If we enter simply "rd \windows.old", we probably will get a
>> message that the directory is not empty. If we append the /s switch, it
>> will try to remove the entire directory tree, including all subfolders
>> and files, even though not empty - but it will first ask us "Are you
>> sure".
>>
>> Again, please tell us exactly what you typed in the Command Prompt window
>> and exactly what results you saw.
>>
>> RC
>> --
>> R. C. White, CPA
>> San Marcos, TX
>> rc@grandecom.net
>> Microsoft Windows MVP
>> (Running Windows Mail 7.0 in Vista x64)
>>
>> "Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
>> news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
>>> Hi,
>>>
>>> This has been asked and answered many times, but none of the answers
>>> semms to work here. I started installing Vista from the XP, but for some
>>> reaosn interupted and installed from the DVD boot. Unfortunately, the
>>> old installation files were renamed "windows.old" and I can't get rid of
>>> them! Tried from both OS'es (XP and Vista); tried taking ownership;
>>> tried running a command prompt as administrator - still no rights to
>>> delete. What gives, besides re-formatting?!!
>>>
>>> Piotr

>>

>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-28-2007
Piotr Wozniacki
 

Posts: n/a
Re: How to delete folders from previous install?
I should have added that - in the list of Group or user names in the
Security tab - there is only one entry for whom ALL permissions (including
the Special permissions) are ticked. This entry is called "Unknown
identity{long_number}, and probably is just a left-over after the first
installation, just like the "windows.old" folder itself (BTW, this folder
occupies 9.62 GB on disk and contains 50194 files in 9306 folders, so
deleting each file one by one is out of question - formatting and
reinstalling would be faster).

After my first couple of trials didn't work, I deleted this Unknown identity
and now I (the user Piotr) as well as the group Administrators have full
permissions, but NOT special permissions - I guess this is the clue. How to
grand the Special permissions (last entry at the bottom of the permissions
list) to myself, or the Administrator?

Frankly, I'd have formatted the drive and reinstalled Vista long ago instead
of trying to delete the folder in question, but I think it's important to
solve the problem in a more intelligent manner - after all, we're all going
to be using Vista on the regular basis...

Right now my version is RC2 Build 5744 (x64).

Please try to help me - what do you mean by Disk cleanup, Jane C?
"Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
news:em6l99$b92$1@nemesis.news.tpi.pl...
> Hi,
>
> I didn't create a new account; being logged as "Piotr" I took the
> ownership of the windows.old folder, including subfolder and files. I then
> checked the security setting for a couple of deeply burried files - the
> ownership is mine all right.
>
> When trying to delete from Windows Explorer, there were 2 stages: first,
> the system informed if I want the administrator allowing me to delete; I
> clicked OK and - after a while - the error message "Accessd denied"
> appeared for each consecutive file (after pressing Skip).
>
> Very similar was how it looked in the Administrators console; I typed
> "rmdir /s windows.old"; the system asked me if I'm sure, I accepted and
> there was a bunch of error messages about trying to delete individual
> files with access denied again.
>
> What's my next move?
>
> Piotr
>
> "R. C. White, MVP" <rc@grandecom.net> wrote in message
> news:336D6612-380C-44B6-BBAE-369FE9321017@microsoft.com...
>> Hi, Piotr.
>>
>> Let's get more specific on a couple of points:
>>
>>> Tried from both OS'es (XP and Vista); tried taking ownership;

>>
>> Ownership of what? Owned by whom?
>>
>> Can you create a new User (if you haven't already) named "Piotr"
>> (perhaps), and have that User take Ownership of the entire drive, or, at
>> least, the entire \Windows.old folder? In my experience, this took much
>> longer than I expected because it had to take ownership of each file and
>> folder, one at a time. But when it finally ends, the User Piotr should
>> be able to delete the folder.
>>
>> Let us know, step by step, exactly what you did and exactly what error
>> message or other result you saw.
>>
>>> tried running a command prompt as administrator - still no rights to
>>> delete.

>>
>> In the Command Prompt window, what command and parameters did you use?
>> As I'm sure you know, we don't "delete" a folder, we "remove" a
>> directory. If we enter simply "rd \windows.old", we probably will get a
>> message that the directory is not empty. If we append the /s switch, it
>> will try to remove the entire directory tree, including all subfolders
>> and files, even though not empty - but it will first ask us "Are you
>> sure".
>>
>> Again, please tell us exactly what you typed in the Command Prompt window
>> and exactly what results you saw.
>>
>> RC
>> --
>> R. C. White, CPA
>> San Marcos, TX
>> rc@grandecom.net
>> Microsoft Windows MVP
>> (Running Windows Mail 7.0 in Vista x64)
>>
>> "Piotr Wozniacki" <p.wozniacki@wp.pl> wrote in message
>> news:32DD83CC-09EA-4DBC-B7DE-CBA6542A847F@microsoft.com...
>>> Hi,
>>>
>>> This has been asked and answered many times, but none of the answers
>>> semms to work here. I started installing Vista from the XP, but for some
>>> reaosn interupted and installed from the DVD boot. Unfortunately, the
>>> old installation files were renamed "windows.old" and I can't get rid of
>>> them! Tried from both OS'es (XP and Vista); tried taking ownership;
>>> tried running a command prompt as administrator - still no rights to
>>> delete. What gives, besides re-formatting?!!
>>>
>>> Piotr

>>

>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #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/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-28-2007
=?Utf-8?B?SmltbXkgQnJ1c2g=?=
 

Posts: n/a
Re: How to delete folders from previous install?
I should also point out ... if windows.old contains a previous installation
of Windows Vista, things are a lot trickier due to any application
compatability junctions that may be in there.

If you look at the permissions on these junctions (such as All Users inside
the users folder), they have an entry on them that denies everyone access to
them. DO NOT remove this deny permission and perform the steps listed in my
previous post, or you may end up corrupting your current installation of
Vista.

The correct way to delete junctions is with the fsutil command-line tool:

fsutil reparsepoint delete <filename>

In any case, letting the cleanup wizard take care of things in this scenario
is much easier

- JB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Administrator Account? =?Utf-8?B?TWNHdXl3ZXI=?= microsoft.public.windows.vista.administration accounts passwords 7 03-11-2007 14:10
File Won't Delete Stuart microsoft.public.windows.vista.file management 1 02-28-2007 13:13
Installation of Vista over a previous version of Vista Stefan Neumann microsoft.public.windows.vista.administration accounts passwords 1 02-28-2007 13:11
reinstall previous version =?Utf-8?B?ZG9uZGlt?= microsoft.public.windows.vista.administration accounts passwords 1 02-28-2007 13:10
Ctrl+Alt+Delete =?Utf-8?B?RW1vcnkgVGVjaA==?= microsoft.public.windows.vista.administration accounts passwords 1 02-28-2007 13:10


All times are GMT +1. The time now is 07:11.


Registry Mechanic - Free Scan Now

Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40