I'm running this script in PowerShell:
Add-NTFSAccess -Path 'C:\MyFolder' -Account PROGRAMMING\IIS_IUSRS -AccessRights FullControl
and I'm getting this error:
Add-NTFSAccess : Cannot bind parameter 'Account'. Cannot convert value "PROGRAMMING\IIS_IUSRS" to type "Security2.IdentityReference2". Error: "Some or all identity references could not be translated." At line:1 char:46 + Add-NTFSAccess -Path 'C:\MyFolder' -Account PROGRAMMING\IIS_IUSRS -AccessRig ... + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Add-NTFSAccess], ParameterBindingException + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,NTFSSecurity.AddAccess
What am I doing wrong?
Thanks,