Re: Set access rights using xcacls.vbs
- From: "Roger Abell [MVP]" <mvpNoSpam@xxxxxxx>
- Date: Thu, 8 Mar 2007 12:55:32 -0700
You should be using the /spec switch
cscript xcacls.vbs /?
for syntax info
However, what you report is curious as the default spec
is This folder, subfolders and files
<joost.bouckenooghe@xxxxxxxxxx> wrote in message
news:1173367661.553972.106060@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all
I want to lock most of our users out of creating folders. Only
teamleaders/managers are allowed to create folders. This way we hope
to force people using a clear structure instead of creating duplicates
all over the network.
We use a batch file where $1 equals the security group in AD and the
name of the folder for that division.
\\SERVER\d$\xcacls "G:\%~1\Private" /G "DOMAIN\Administrators":F;F
"DOMAIN\%~1-FC":M;M "DOMAIN\%~1":BA987654321;BA9865421 /I REMOVE
Administrators: ICT
$1-FC: teamleaders/management (can create folders)
$1: users who can delete write read execute files but cannot create
folders at all.
I use the REMOVE switch because the folder is created earlier on in
the script as well, and it takes over the security of the root folder.
This works like a charm except one tiny thing:
For $1 security is only set to "this folder only".
Is there anyone who has an idea on how to force xcacls.vbs to apply
all these settings to all files, folders and subfolders?
I'd be grateful :-)
.
- Follow-Ups:
- Re: Set access rights using xcacls.vbs
- From: joost . bouckenooghe
- Re: Set access rights using xcacls.vbs
- References:
- Set access rights using xcacls.vbs
- From: joost . bouckenooghe
- Set access rights using xcacls.vbs
- Prev by Date: Re: Modifying object properties
- Next by Date: Re: Account Lockout not being applied
- Previous by thread: Set access rights using xcacls.vbs
- Next by thread: Re: Set access rights using xcacls.vbs
- Index(es):
Relevant Pages
|
|