Adding and Removing permissions from shared folder
Posted: Thu Sep 13, 2018 5:33 am
I am trying to find the equivalent to the below in powershell. I see that there is a cmdlet called Get-ACL but I dont see a modifying cmdlet.
- for /f %%a in (servers.txt) do (
- icacls \\%%a\folder /remove:g Everyone
- icacls \\%%a\folder\logs /remove:g Everyone
- icacls \\%%a\folder\logs /remove:g user
- icacls \\%%a\folder\ /grant "Security Group":R
- )