troubleshooting Question

ICACLS Script to Change permissions

Avatar of Kevin Watt
Kevin Watt asked on
2 Comments2 Solutions157 ViewsLast Modified:
I have prepared and tested 4 commands to set permissions on a folder. What I would like to be able to do is combine the commands into a single command but cant get this to work

My commands are below, any idea?
icacls C:\test /grant FS_ABS_ORG:(OI)(CI)(X,RD,RA,REA,WD,AD,WA,WEA,DC,RC)
icacls C:\test\_Secure /inheritance:d
icacls C:\test\_Secure /remove FS_ABS_ORG
icacls C:\test\_Secure /grant FS_ABS_ORG:(OI)RX
Join our community to see this answer!
Unlock 2 Answers and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros