Hi I'm doing some automated folder permissions across servers and I've created a group with the same name on remote machines and i'm trying to grant the group access to a folder but icacls seems to not like local groups, it can't add them to the folder...
For example it adds domain\user, domain\group, builtin\administrators fine
but when i try localmachine\localgroup is chokes... Any ideas?
I am doing this through powershell but I don't think that should be an issue.. I'd get the SID but i'm guessing it's tricky because I'm executing on the remote machine via invoke-command
any ideas?
Thanks!
Try omitting the
localmachine\
fromlocalmachine\localgroup
. You shouldn't need to specify the local computer name, when you're deploying theicacls
command through PowerShell Remoting (specificallyInvoke-Command
). You might notice in theicacls
help that it does not require the computer name as a prefix.