How use SetACL w/ spaces in trustee name?

C

cbv

I would like to remove existing ACEs and would like to set the 'Allow
inheritable permissions from parent...' setting. Trustees w/o spaces work
fine. I just can't get ones containing spaces to work:

I keep getting "ERROR processing object <Local>: The system cannot find the
file specified."

for %a in ("Domain Admins" "Enterprise Admins") setacl c:\ /dir /revoke
"domain\%a" /change /p:yes

Any ideas?

Thanks,
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top