PhillipsPlastics
asked on
icacls invalid parameter on group name
Hello,
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
Thanks.
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
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
Thanks.
can you post the code?
Try the following..
icacls 'w:\prod\$libname\$dirname ' /grant 'DOMAINNAME\$groupname":F'
icacls 'w:\prod\$libname\$dirname
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It ended up being icacls 'w:\prod\$libname\$dirname ' /grant ""DOMAINNAME\$groupname":F "
Thanks!
Thanks!
ASKER