You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line |
681 | Install-JVGui -Force:$Force
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Error occurred when setting ACL on [C:\Program Files\Javinizer\1.5.13\Universal]: Exception calling "AddAccessRule" with "1" argument(s): "Some or all identity references could not be translated."
Steps to Reproduce (for bugs)
Your Environment
Module version used:
Operating System and PowerShell version:
changing line 118 in Install-JVGui.ps1
$aclRule = New-Object System.Security.AccessControl.FileSystemAccessRule("everyone", "FullControl", "ContainerInherit,Objectinherit", "none", "Allow")
to
$aclRule = New-Object System.Security.AccessControl.FileSystemAccessRule(([wmi]"Win32_SID.SID='S-1-1-0'").AccountName, "FullControl", "ContainerInherit,Objectinherit", "none", "Allow")
works for me
( PS C:>
([wmi]"Win32_SID.SID='S-1-1-0'").AccountName
Jeder)
The text was updated successfully, but these errors were encountered:
Didn't even occur to me that different language windows would have that issue. Thanks for also providing a solution to finding the Everyone user account.
Going to also link this doc here for my reference.
Expected Behavior
Install GUI
Current Behavior
Line |
681 | Install-JVGui -Force:$Force
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Error occurred when setting ACL on [C:\Program Files\Javinizer\1.5.13\Universal]: Exception calling "AddAccessRule" with "1" argument(s): "Some or all identity references could not be translated."
Steps to Reproduce (for bugs)
Your Environment
changing line 118 in Install-JVGui.ps1
$aclRule = New-Object System.Security.AccessControl.FileSystemAccessRule("everyone", "FullControl", "ContainerInherit,Objectinherit", "none", "Allow")
to
$aclRule = New-Object System.Security.AccessControl.FileSystemAccessRule(([wmi]"Win32_SID.SID='S-1-1-0'").AccountName, "FullControl", "ContainerInherit,Objectinherit", "none", "Allow")
works for me
( PS C:>
([wmi]"Win32_SID.SID='S-1-1-0'").AccountName
Jeder)
The text was updated successfully, but these errors were encountered: