Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Help removing old Windows & Users folder without breaking anything!

07 Dec 2012   #11

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by AddRAM View Post
Not sure. Who is Alpha/Red, the users on that install ?
Yep. Alpha/Red is the only user account on this computer.

Quote   Quote: Originally Posted by AddRAM View Post
Have you tried taking ownership of the files ?
Yep. I used this tutorial. It seems to work when I use it on the Users and Windows folder on F drive. I can see the word 'Success' flash by in the command prompt, and the phrase '...now owned by "Alpha/Red"'.

Quote   Quote: Originally Posted by Kaktussoft View Post
Are you logged on as user RED on computer ALPHA? Do you have administrator priviliges?
Yep. I'm sure that I have admin privileges, it's the only user account. Here's a screenshot if that helps:

Name:  User Accounts Capture - 2012 12 07.PNG
Views: 3
Size:  23.9 KB


Quote   Quote: Originally Posted by Kaktussoft View Post
Does system,admistrator,user etc have any DENY access in folder Windows?
No. Every 'group or username' seems to have full access with the exception of 'Special Permissions'. The only 'group or username' that doesn't have full access is the 'CREATOR OWNER' account and the 'TrustedInstaller' account that each only appear on the Windows folder permissions.

Here's the message I get when I try to delete Windows or Users from the F drive:

Name:  Folder Access Denied Capture - 2012 12 07.PNG
Views: 0
Size:  226.0 KB






My System SpecsSystem Spec
.

07 Dec 2012   #12

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

right click F:\windows , properties, tab security->advanced
Post screenshot
tab owner. Post screenshot as well
My System SpecsSystem Spec
07 Dec 2012   #13

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
right click F:\windows , properties, tab security->advanced
Post screenshot
tab owner. Post screenshot as well
Thanks Kaktussoft, here we go:

Help removing old Windows & Users folder without breaking anything!-permissions-capture-2012-12-07.png

Help removing old Windows & Users folder without breaking anything!-owner-capture-2012-12-07.png


My System SpecsSystem Spec
.


07 Dec 2012   #14

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Try to delete some folders in f:\windows (some random one)
Try to delete some files in f:\windows (some random one)
Works?? if not

Create a file and folder in f:\windows. Works? Delete them, works?
My System SpecsSystem Spec
07 Dec 2012   #15

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

In elevated command prompt:
Code:
become owner of everything under f:\windows
takeown  /f  f:\windows  /r  /d  Y
reset the permissions. includes subfolders
icacls  f:\windows\*  /reset  /t  /c  /l  /q
set permission to inherete. includes subfolders
icacls  f:\windows\*  /inheritance:e  /t  /c  /l  /q
Works? any errors?
My System SpecsSystem Spec
07 Dec 2012   #16

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
In elevated command prompt:
Code:
become owner of everything under f:\windows
takeown  /f  f:\windows  /r  /d  Y
reset the permissions. includes subfolders
icacls  f:\windows\*  /reset  /t  /c  /l  /q
set permission to inherete. includes subfolders
icacls  f:\windows\*  /inheritance:e  /t  /c  /l  /q
Works? any errors?
did it fix the problem?
My System SpecsSystem Spec
07 Dec 2012   #17

x64 (6.1.7601) Win7_SP1 HomePrem
 
 

Might this be a case for EVERYONE?

Add the EVERYONE object with full control to the security for F:\Windows and F:\Users - populate subfolders and files.

Might work.

Bill
My System SpecsSystem Spec
07 Dec 2012   #18

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Slartybart View Post
Might this be a case for EVERYONE?

Add the EVERYONE object with full control to the security for F:\Windows and F:\Users - populate subfolders and files.

Might work.

Bill
Better do: Take ownership for F:\Windows and F:\Users - populate subfolders and files first. And populate the permissions as well. So remove the excplicit permissions and inheret them only.

Full access to EVERYONE is not enough! There can be be DENY permissions (although very unlikely)
My System SpecsSystem Spec
07 Dec 2012   #19

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
In elevated command prompt:
Code:
become owner of everything under f:\windows
takeown  /f  f:\windows  /r  /d  Y
reset the permissions. includes subfolders
icacls  f:\windows\*  /reset  /t  /c  /l  /q
set permission to inherete. includes subfolders
icacls  f:\windows\*  /inheritance:e  /t  /c  /l  /q
Works? any errors?
Kaktussoft, I think you've done it!! Thankyou so much.

Windows folder is gone and I'm in the process of repeating the process with the Users folder as I type. Thanks for sharing your ninja command prompt moves!

I think I must have good karma after helping out lots of people on audio forums! Thanks again to AddRAM, Kaktussoft and Slartybart.. hopefully some other forum members can gain something from this thread too!

My System SpecsSystem Spec
07 Dec 2012   #20

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by jimdandy View Post
Quote   Quote: Originally Posted by Kaktussoft View Post
In elevated command prompt:
Code:
become owner of everything under f:\windows
takeown  /f  f:\windows  /r  /d  Y
reset the permissions. includes subfolders
icacls  f:\windows\*  /reset  /t  /c  /l  /q
set permission to inherete. includes subfolders
icacls  f:\windows\*  /inheritance:e  /t  /c  /l  /q
Works? any errors?
Kaktussoft, I think you've done it!! Thankyou so much.

Windows folder is gone and I'm in the process of repeating the process with the Users folder as I type. Thanks for sharing your ninja command prompt moves!

I think I must have good karma after helping out lots of people on audio forums! Thanks again to AddRAM, Kaktussoft and Slartybart.. hopefully some other forum members can gain something from this thread too!

Glad you solved it. You could have done it yourself using windows explorer GUI!


My commands only did:
  • take ownership of everything in f:\windows
  • delete all explicit permissions on the files
  • activate inherentence.
Probably most of the files did actually delete on first try(?)
You forgot to populate ownership to files/subfolders(?)
You forgot to populate permissions to files/subfolders(?)

that's why I gave you the cryptic commands.

Why not simply format F?
My System SpecsSystem Spec
Reply

 Help removing old Windows & Users folder without breaking anything!





Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:49 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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