Avatar of Kevin Watt
Kevin Watt
 asked on

ICACLS Script to Change permissions

Hi
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
Powershell

Avatar of undefined
Last Comment
Shaun Vermaak

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
arnold

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Shaun Vermaak

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61