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

Can't add standard user account to Hyper-V Administrator group on computer with Swedish installation of Windows #3128

Closed
hollowdrutt opened this issue Jun 5, 2024 · 0 comments · Fixed by #3373
Labels
Area-Environments Issue-Bug Something isn't working or needs investigation Priority-2 Resolution-Fix-Available Available in a release Type-Localization

Comments

@hollowdrutt
Copy link

Dev Home version

0.1401.505.0

Windows build number

10.0.19045.4412

Other software

No response

Steps to reproduce the bug

  • I use a computer with Swedish language Windows installed
  • When I run Dev Home as standard user and try to create an environment I get the message "The current user is not in the Hyper-V administrators group."
  • I click the "Add user to group"-button, get a UAC prompt asking for an administrator account, I authenticate with my administrator account

Expected result

  • The error message about "The current user is not in the Hyper-V administrators group." disappears.
  • The user is added to the Hyper-V Administrator group

Actual result

I get an error message "Unable to add the user to the Hyper-V administrators group or enable Hyper-V. Hyper-V virtual machines may not load. To resolve the issue manually, add the user to the Hyper-V administrators group, enable Hyper-V and reboot"

Probably because the PowerShell script refers to the group by name 'Hyper-V Administrators ' but on my computer the group is called 'Hyper-V-administratörer'

Add-LocalGroupMember -Group 'Hyper-V Administrators' -Member ([System.Security.Principal.WindowsIdentity]::GetCurrent().Name)

Included System Information

No response

Included Extensions Information

No response

@hollowdrutt hollowdrutt added the Issue-Bug Something isn't working or needs investigation label Jun 5, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage New issue that the core contributors need to triage label Jun 5, 2024
@kanismohammed kanismohammed added Priority-2 and removed Needs-Triage New issue that the core contributors need to triage labels Jun 5, 2024
@krschau krschau added this to the Dev Home v0.16 milestone Jul 9, 2024
@krschau krschau added the Resolution-Fix-Committed Fix is checked in, but may take 3-4 weeks before it's in a release label Jul 9, 2024
@krschau krschau added Resolution-Fix-Available Available in a release and removed Resolution-Fix-Committed Fix is checked in, but may take 3-4 weeks before it's in a release labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Environments Issue-Bug Something isn't working or needs investigation Priority-2 Resolution-Fix-Available Available in a release Type-Localization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants