When you use SetAccessRule() to set access rights on a Windows directory, the user who will get the permission has to be a member of the Administrators group. If the user is not a member of the Administrators group PowerShell shows the error message
Exception calling “SetAccessRule” with “1” argument(s): “Some or all identity references could not be translated.”