Yes, take ownership first. It is up to you whether you use cacls.exe or
icacls.exe.
"Whiteford" <> wrote in message
news:...
> 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]" <> wrote in message
> news:#ckmG$...
>> 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" <> wrote in message
>> news:...
>>> 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]" <> wrote in message
>>> news:...
>>>>
>>>>
>>>> "Whiteford" <> wrote in message
>>>> news:...
>>>>> 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.
>>>
|