From: Whiteford on
I still get access denied on folders if I use:

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

Do I need to take ownership first?

as it is Win2008 should I use icacls instead?

"Pegasus [MVP]" <news(a)microsoft.com> wrote in message
news:#ckmG$26KHA.3880(a)TK2MSFTNGP04.phx.gbl...
> 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.
>>
From: Pegasus [MVP] on
Yes, take ownership first. It is up to you whether you use cacls.exe or
icacls.exe.

"Whiteford" <no(a)no.com> wrote in message
news:eV0sKT46KHA.1888(a)TK2MSFTNGP05.phx.gbl...
> I still get access denied on folders if I use:
>
> cacls "d:\User Files" /e /t /c /g system:f
>
> Do I need to take ownership first?
>
> as it is Win2008 should I use icacls instead?
>
> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
> news:#ckmG$26KHA.3880(a)TK2MSFTNGP04.phx.gbl...
>> 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.
>>>