How use SetACL w/ spaces in trustee name?

  • Thread starter Thread starter cbv
  • Start date Start date
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
 
Back
Top