cacls

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
server004
Posts: 5
Joined: 11 Apr 2012 06:14

cacls

#1 Post by server004 » 12 Apr 2012 07:26

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

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: cacls

#2 Post by Squashman » 12 Apr 2012 07:50

Thought you had a thread started on this topic already.
viewtopic.php?f=3&t=3177

Post Reply