I need to assign read permissions to c:\ and everything under it, for a domain user account.
I used XCACLS.exe to do it but when I go to take a look at the permissions a message comes up asking to reorder the permissions. This is due to some problem with inheriting permissions. Microsoft suggests using XCACLS.vbs for it.

I used XCACLS.vbs to do it but it takes several hours to do it.

Is there any other way of doing this using a script ?

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


what about:

setacl.exe -on "\\%COMPUTERNAME%\C$" -ot file -actn ace -ace "n:S-1-5-11;p:read;s:y;" -ace "n:S-1-5-11;p:list_folder;s:y;" -ace "n:S-1-5-11;p:read_ex;s:y;"

that SID is for "Authenticated users" on a domain. Takes about 2 or 3 minutes usually

I'm going to note one potential issue with this: http://techrepublic.com.com/2100-1009_11-5896041.html?tag=nl
Answered 12/16/2005 by: schieb
Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity