Discussion Locked

CACLS.EXE

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need help with the following:
When I run the following script command, the first line executes without any problems.
The second and third line will not execute properly. I get the following error:
NO MAPPING BETWEEN ACCOUNT NAMES AND SECURITYIS'S WAS DONE. See Knowledge Base ID Q142661 for more details.
MD Agreements
ECHO Y| CACLS Agreements /t /g "Excutive Management":f "Sales Manager":c "VP-Construction":c "VP-Custom Homes":c "Authenticated users":r "Administrative Services AdmMD Drawings
ECHO Y| CACLS Drawings /t /p "Executive Management":f "VP-Construction":c "VP-Custom Homes":c "Drafting":c "Drafting Administration":c "Authenticated users":rinistration":c "Custom Estimating":c
MD "Price Request & response"
ECHO Y| CACLS "Price Request & Response" /t /g "Executive Management":f "VP-Construction":c "VP-Custom Homes":c "Drafting":c "Drafting Administration":c "Purchasing Administration":c "Purchasing":c "Custom Estimating":c "Production Estimating":c "Sales Associate":c "Sales Manager":c

5 replies

by lo

Hi - Not my language but ...
The 2nd ECHO Y has /t /p, other 2 have /t /g

The last field on the first ECHO Y appears to be missing something. Other two end in ":c

Was ":r "Admin on the first ECHO Y correct, the other two us ":c?

Assuming you did copy/paste, else ...

lo

by mark.thomson

Assuming you used cut and paste
The first ECHO line is incorrect at ... "Adminstrative Services ADMMD Drawings etc.
It should probably read something like
... "Administrative Services ":????
MD Drawings
ECHO Y| etc.

where ???? is the permission for "Administrative Serices" followed by any other groups/users to be assigned permissions to the directory Agreements

there is also an error in the second ECHO line at
... "Authenticated users":rinistration" etc

which should be something like

.. "Authenticated users":r "???inistration" etc.

The 2 sets of missing quotes are balancing each other and causing an invalid argument to be sent

This discussion is closed to new replies.