Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Script NTFS Permissions Using SetACL

Updated: 29 Aug 2008 | 3 comments
CondorMan's picture
+2 2 Votes
Login to vote

If you ever need to script NTFS permission changes, SetACL is a powerful alternative to CACLS. Here is a command line that will use SetACL to grant full control to the Administrators and System accounts on folder and all subfolders:

SetACL.exe -on "C:\Program Files" -ot file -actn ace -ace "n:administrators;p:full" -ace "n:system;p:full" -actn clear -clr "dacl,sacl" -actn rstchldrn -rst "dacl,sacl"

Comments

sm4rt's picture
02
Sep
2008
0 Votes 0
Login to vote

SetACL

Is there an advantage in using SetACL over CACLS?

Brandon's picture
12
Sep
2008
0 Votes 0
Login to vote

SetACL has more options and

SetACL has more options and can do some of the tricky things cacls cannot. I prefer it for its speed advantage as well.

CondorMan's picture
12
Sep
2008
2 Votes +2
Login to vote

It also is more robust

In my experience CACLS hasn't been as reliable as SetACL.