I have been adjusting an ACL in a script like so:
$Acl = get-acl -Path $File
$rule = New-Object -TypeName system.security.accesscontrol.filesystemaccessrule -ArgumentList ('Authenticated Users','Read','Allow')
$Acl.setaccessrule($rule)
set-acl -Path $File -AclObject $Acl
That has been working well on my English systems, but I am getting a report on a Dutch system: "Kan een aantal of alle id-verwijzingen niet omzetten" At the setaccessrule($rule).
The translation of that error ("Is possible a number or all id-references do not convert.") makes me think maybe the English-language Authenticated Users doesn't exist on that machine and I need a language-neutral way of identifying that group.
- Are the built-in groups language specific?
- How can I do the same thing in a language-neutral way?
Thanks.