I am trying to use icacls to set permissions for a domain group, but for some reason it is not working.
icacls "C:\Temp\ACL" /T /C /grant ("Everyone"+':F') ("System"+':F') ("Administrators"+':F') ("DOMAIN\groupname"+':C') >> C:\temp\c.log
I am trying to run it with Powershell, but I get the following error:
Invalid parameter "DOMAIN\groupname:C"
I have tried multiple solutions, and it works without ("DOMAIN\groupname"+':C')
.