/build/static/layout/Breadcrumb_cap_w.png

Changing NTFS permissions

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 ?

Thanks

0 Comments   [ + ] Show comments

Answers (1)

Posted by: schieb 19 years ago
Purple Belt
0
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ