Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

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

@hollowdrutt

Description

@hollowdrutt

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions