Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InstallGUI throws exception at german windows #244

Closed
herbrot opened this issue Mar 3, 2021 · 1 comment · Fixed by #246
Closed

InstallGUI throws exception at german windows #244

herbrot opened this issue Mar 3, 2021 · 1 comment · Fixed by #246
Assignees
Labels
bug Something isn't working

Comments

@herbrot
Copy link

herbrot commented Mar 3, 2021

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

  • 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)

@jvlflame jvlflame added the bug Something isn't working label Mar 3, 2021
@jvlflame jvlflame self-assigned this Mar 3, 2021
@jvlflame
Copy link
Collaborator

jvlflame commented Mar 3, 2021

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.

jvlflame added a commit that referenced this issue Mar 3, 2021
@jvlflame jvlflame mentioned this issue Mar 7, 2021
@jvlflame jvlflame linked a pull request Mar 7, 2021 that will close this issue
@jvlflame jvlflame closed this as completed Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants