I am in need of immediate assistance if at all possible.
I am trying to use the icacls command in one of my powershell scripts. I am having a problem when I try to run the command as follows:
icacls "w:\prod\$libname\$dirname" /grant "DOMAINNAME\$groupname":F
the error I receive during my script is Invalid Parameter "DOMAINNAME\the_group_name"
I have checked and "the_group_name" exists in Active Directory under the DOMAINNAME domain. I am unsure why it is receiving this as an invalid parameter?
Attempting to run this command from Server 2008 R2