Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista security

Vista - Is possible to take ownership of a lot of files?

Reply
 
Old 06-25-2007   #1 (permalink)
Magno


 
 

Is possible to take ownership of a lot of files?

My computer now has the Vista OS, the old OS was the XP. I did not made an
upgrade but Vista was able to keep all my files and move the old os to
windows.old.

Well, the problem is with some files. I have a folder, i.e., with a lot of
files, when I try to open some Vista complains that file could not be
accessed. If I go and take the ownership everything goes ok, of course, but I
have to do it with each file! When selecting all not allows me to change. Is
there any trick to get rid of this?

Thx!

My System SpecsSystem Spec
Old 06-25-2007   #2 (permalink)
Marcin Domaslawski


 
 

Re: Is possible to take ownership of a lot of files?

Hi,

You can change owner for whole folder - there is a option "Replace owner on
subcontainers and objects" - owner will be recursively changed.

Marcin Domaslawski


"Magno" <Magno@discussions.microsoft.com> wrote in message
news:5309CEBD-F3C5-4881-A90E-3967EF298242@microsoft.com...
> My computer now has the Vista OS, the old OS was the XP. I did not made an
> upgrade but Vista was able to keep all my files and move the old os to
> windows.old.
>
> Well, the problem is with some files. I have a folder, i.e., with a lot of
> files, when I try to open some Vista complains that file could not be
> accessed. If I go and take the ownership everything goes ok, of course,
> but I
> have to do it with each file! When selecting all not allows me to change.
> Is
> there any trick to get rid of this?
>
> Thx!


My System SpecsSystem Spec
Old 06-25-2007   #3 (permalink)
Alun Jones


 
 

Re: Is possible to take ownership of a lot of files?

"Magno" <Magno@discussions.microsoft.com> wrote in message
news:5309CEBD-F3C5-4881-A90E-3967EF298242@microsoft.com...
> My computer now has the Vista OS, the old OS was the XP. I did not made an
> upgrade but Vista was able to keep all my files and move the old os to
> windows.old.
>
> Well, the problem is with some files. I have a folder, i.e., with a lot of
> files, when I try to open some Vista complains that file could not be
> accessed. If I go and take the ownership everything goes ok, of course,
> but I
> have to do it with each file! When selecting all not allows me to change.
> Is
> there any trick to get rid of this?


Use icacls from the command prompt.

icacls c:\folder /setowner Fred /T /C /Q

Note that "/setowner Fred" says to set the owner to the account named
"Fred"; the /T option says to descend subfolders; /C says to continue if
errors occur, rather than halting at the first problem; /Q says to do this
quietly, so that the only output you see is a list of all errors.

Use "icacls /?" to give you information on what other parameters you could
use.

Alun.
~~~~


My System SpecsSystem Spec
Old 06-25-2007   #4 (permalink)
Magno


 
 

RE: Is possible to take ownership of a lot of files?

Hi! thank you for reply!

Well, bad news! None of the options above solved the problem ... the
icacls got a lot of Access Denied and no files took the ownership. I tried
some options but I really dont know about this command, Vista is new for me :s

I tried the folder option from Marcin and also got the same problem. Only
file by file. The old lost XP user now called S-1-5-21-4339239-1695949.... is
there. I remove it just to clean.
My System SpecsSystem Spec
Old 06-25-2007   #5 (permalink)
Magno


 
 

RE: Is possible to take ownership of a lot of files? SOLVED!

Hugh!!! I did it! By using the folder options! Well, after a lot of clicks
here and there on the Advanced tab I was able to set the folder and files
ownership, I will try to reproduce it in other " locked " folders because I
dont know the exact kick I did.

Thank you all!!
My System SpecsSystem Spec
Old 06-27-2007   #6 (permalink)
Alun Jones


 
 

Re: Is possible to take ownership of a lot of files? SOLVED!

"Magno" <Magno@discussions.microsoft.com> wrote in message
news:FF209CD1-F74B-4C36-ACEF-E590118CA236@microsoft.com...
> Hugh!!! I did it! By using the folder options! Well, after a lot of clicks
> here and there on the Advanced tab I was able to set the folder and files
> ownership, I will try to reproduce it in other " locked " folders because
> I
> dont know the exact kick I did.


I did it this morning on a set of folders by right-clicking on the root of
the folder tree, selecting Properties, and the Security tab, clicking on
Advanced, then the Owner tab, selected an administrator account, checked the
box to apply to this folder and all children, and finally hit "OK" or
"Apply".

Part way through, it said it had an access denied error descending into a
folder, and did I want to change the rights - I selected "Yes" to do so for
this and all other such folders.

After that, there were still some items I did not have rights to (despite
being the owner), so I still had to go and assign rights to myself as well -
this can be applied to the folder and all children.

I would generally recommend this process only when recovering data - this is
such a sledgehammer approach to manhandling rights, that you will lose
essentially all NTFS permission information, and will have to build it from
the ground up again.

Alun.
~~~~


My System SpecsSystem Spec
Old 06-28-2007   #7 (permalink)
anandk


 
 

Re: Is possible to take ownership of a lot of files? SOLVED!

Download this reg fix from http://www.mediafire.com/?8gz9xhpmwij and just add
it to the registry. The option to take ownership of system files will now
appear in ur rt-click menu. Hope this is what u were looking for !

www.WinVistaClub.com
Microsoft MVP 2007 Awardee.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
taking ownership (recursively would be nice) and unlocking files i PowerShell
Ownership of all files on hard drive suddenly changed Vista security
taking ownership of system 32 files Vista General
Taking ownership of Vista files and folders from an XP machine Vista account administration
Accessing files - ownership doesn't help Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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 41 42 43 44 45 46