From: Whiteford on
Hi,

I need to take ownership of a huge folder on our Windows 2008 server. I
have restored 1TB of data but the GUI tool keeps prompting for me to skip
etc. Can I use a command line tool to five the system account full
ownership of all files?

Thanks

From: Pegasus [MVP] on


"Whiteford" <no(a)no.com> wrote in message
news:OCak0116KHA.1888(a)TK2MSFTNGP05.phx.gbl...
> Hi,
>
> I need to take ownership of a huge folder on our Windows 2008 server. I
> have restored 1TB of data but the GUI tool keeps prompting for me to skip
> etc. Can I use a command line tool to five the system account full
> ownership of all files?
>
> Thanks

Under Win7 I would use takeown.exe. If this command does not exist under
Win2008 then you can probably copy it across from a Win7 PC.

From: Whiteford on
Thanks it does have this tool!

However when I use it I get the error "info: the current logged on user does
not have ownership privileges on the file (or folder): ("f:\folderername")

and

INFO: Access is denied. ( "f:\foldername" )

Shouldn't this tool take control?

"Pegasus [MVP]" <news(a)microsoft.com> wrote in message
news:uow3Ca26KHA.980(a)TK2MSFTNGP04.phx.gbl...
>
>
> "Whiteford" <no(a)no.com> wrote in message
> news:OCak0116KHA.1888(a)TK2MSFTNGP05.phx.gbl...
>> Hi,
>>
>> I need to take ownership of a huge folder on our Windows 2008 server. I
>> have restored 1TB of data but the GUI tool keeps prompting for me to skip
>> etc. Can I use a command line tool to five the system account full
>> ownership of all files?
>>
>> Thanks
>
> Under Win7 I would use takeown.exe. If this command does not exist under
> Win2008 then you can probably copy it across from a Win7 PC.

From: Whiteford on
It seemed to work on this folder if I added the "system" account via the GUI
first then run the takeown tool, how can I then add the "system" account to
all folders and directories first via the command line then take ownership?

"Pegasus [MVP]" <news(a)microsoft.com> wrote in message
news:uow3Ca26KHA.980(a)TK2MSFTNGP04.phx.gbl...
>
>
> "Whiteford" <no(a)no.com> wrote in message
> news:OCak0116KHA.1888(a)TK2MSFTNGP05.phx.gbl...
>> Hi,
>>
>> I need to take ownership of a huge folder on our Windows 2008 server. I
>> have restored 1TB of data but the GUI tool keeps prompting for me to skip
>> etc. Can I use a command line tool to five the system account full
>> ownership of all files?
>>
>> Thanks
>
> Under Win7 I would use takeown.exe. If this command does not exist under
> Win2008 then you can probably copy it across from a Win7 PC.

From: Pegasus [MVP] on
The trusty old cacls command will do it:

cacls "d:\User Files" /e /t /c /g system:f

On Windows 7, cacls still works but is deprecated. icacls.exe should be used
instead.

"Whiteford" <no(a)no.com> wrote in message
news:udZcE626KHA.3184(a)TK2MSFTNGP05.phx.gbl...
> It seemed to work on this folder if I added the "system" account via the
> GUI first then run the takeown tool, how can I then add the "system"
> account to all folders and directories first via the command line then
> take ownership?
>
> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
> news:uow3Ca26KHA.980(a)TK2MSFTNGP04.phx.gbl...
>>
>>
>> "Whiteford" <no(a)no.com> wrote in message
>> news:OCak0116KHA.1888(a)TK2MSFTNGP05.phx.gbl...
>>> Hi,
>>>
>>> I need to take ownership of a huge folder on our Windows 2008 server. I
>>> have restored 1TB of data but the GUI tool keeps prompting for me to
>>> skip etc. Can I use a command line tool to five the system account full
>>> ownership of all files?
>>>
>>> Thanks
>>
>> Under Win7 I would use takeown.exe. If this command does not exist under
>> Win2008 then you can probably copy it across from a Win7 PC.
>