Page 1 of 1

cacls

Posted: 12 Apr 2012 07:26
by server004
hello


i have 100 users with each a folder on a share like this
user 1:
\\server01\profiles\user 1
...
...
user 100
\\server01\profiles\user 100

each user is owner of it's own folder
now i want a logon .bat script that gives the administrators group full controll of the folder

i have made something like this:

cacls \\server01\profiles\%username% /E /G "administrators":F

when user1 for example logs on this script normally should add the administrators group to the permissions
of \\server01\profiles\user 1 and give them full control.

but it does not work when i try this line of code with a local folder it works fine, when i give up a share location it does not work.


can someone help me, the 100 users all work on xp machines so i can't use icacls

Re: cacls

Posted: 12 Apr 2012 07:50
by Squashman
Thought you had a thread started on this topic already.
viewtopic.php?f=3&t=3177