Skip to content

Installer fails to add user to Hyper-v Admin group on non-english windows #5167

@lstocchi

Description

@lstocchi

General information

The installer fails at adding user to Hyper-v Admins group on non-english Windows because WIX rely on the english group name to identify the group.
https://github.com/crc-org/crc/blob/main/packaging/windows/product.wxs#L87

Operating System

Windows

Hypervisor

Hyper-V

Did you run crc setup before crc start?

yes

Running on

Laptop

Steps to reproduce

  1. Change language to your Windows machine (do not use english)
  2. Launch the installer
  3. it fails with failed to add user to group ( -2147022676 baldr hyper-v administrators)

CRC version

CRC status

CRC config

Host Operating System

Host Name:                     LUCAW11
OS Name:                       Microsoft Windows 11 Pro
OS Version:                    10.0.26200 N/A Build 26200
OS Manufacturer:               Microsoft Corporation
OS Configuration:              Standalone Workstation
OS Build Type:                 Multiprocessor Free
Registered Owner:              baldr13@hotmail.it
Registered Organization:
Product ID:                    00330-80846-62737-AA146
Original Install Date:         4/10/2025, 12:58:01 PM
System Boot Time:              3/6/2026, 9:31:36 AM
System Manufacturer:           LENOVO
System Model:                  20TJS2F42X
System Type:                   x64-based PC
Processor(s):                  1 Processor(s) Installed.
                               [01]: Intel64 Family 6 Model 165 Stepping 2 GenuineIntel ~2310 Mhz
BIOS Version:                  LENOVO N2VET29W (1.14 ), 3/15/2021
Windows Directory:             C:\WINDOWS
System Directory:              C:\WINDOWS\system32
Boot Device:                   \Device\HarddiskVolume1
System Locale:                 it;Italian (Italy)
Input Locale:                  it;Italian (Italy)
Time Zone:                     (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
Total Physical Memory:         32,525 MB
Available Physical Memory:     17,507 MB
Virtual Memory: Max Size:      34,573 MB
Virtual Memory: Available:     19,005 MB
Virtual Memory: In Use:        15,568 MB
Page File Location(s):         C:\pagefile.sys
Domain:                        WORKGROUP
Logon Server:                  \\LUCAW11
Hotfix(s):                     4 Hotfix(s) Installed.
                               [01]: KB5066128
                               [02]: KB5054156
                               [03]: KB5077181
                               [04]: KB5077869
Network Card(s):               10 NIC(s) Installed.
                               [01]: TAP-Windows Adapter V9
                                     Connection Name: Connessione alla rete locale (LAN)
                                     Status:          Media disconnected
                               [02]: OpenVPN Data Channel Offload
                                     Connection Name: OpenVPN Data Channel Offload
                                     Status:          Media disconnected
                               [03]: Intel(R) Wi-Fi 6 AX201 160MHz
                                     Connection Name: Wi-Fi
                                     Status:          Media disconnected
                               [04]: Lenovo USB Ethernet
                                     Connection Name: Ethernet
                                     DHCP Enabled:    Yes
                                     DHCP Server:     192.168.1.254
                                     IP address(es)
                                     [01]: 192.168.1.57
                                     [02]: fe80::e4df:a6d9:152a:7b2c
                                     [03]: 2001:b07:add:b198:5516:9061:8079:671c
                                     [04]: 2001:b07:add:b198:20a4:8aa6:b61c:8037
                               [05]: VirtualBox Host-Only Ethernet Adapter
                                     Connection Name: Ethernet 2
                                     DHCP Enabled:    No
                                     IP address(es)
                                     [01]: 192.168.56.1
                                     [02]: fe80::33fd:5d79:7633:f8ce
                               [06]: Hyper-V Virtual Ethernet Adapter
                                     Connection Name: vEthernet (External)
                                     DHCP Enabled:    Yes
                                     DHCP Server:     255.255.255.255
                                     IP address(es)
                                     [01]: 169.254.61.160
                                     [02]: fe80::6534:d51d:4167:8266
                               [07]: Microsoft Network Adapter Multiplexor Driver
                                     Connection Name: Bridge di rete
                                     Status:          Media disconnected
                               [08]: Hyper-V Virtual Ethernet Adapter
                                     Connection Name: vEthernet (NFS_internal)
                                     DHCP Enabled:    Yes
                                     DHCP Server:     255.255.255.255
                                     IP address(es)
                                     [01]: 169.254.135.163
                                     [02]: fe80::4fd5:cf49:2716:8018
                               [09]: Hyper-V Virtual Ethernet Adapter
                                     Connection Name: vEthernet (LAN_Network)
                                     DHCP Enabled:    Yes
                                     DHCP Server:     255.255.255.255
                                     IP address(es)
                                     [01]: 169.254.150.139
                                     [02]: fe80::92b6:e340:3137:8952
                               [10]: Hyper-V Virtual Ethernet Adapter
                                     Connection Name: vEthernet (Stable)
                                     Status:          Media disconnected
Virtualization-based security: Status: Running
                               Required Security Properties:
                               Available Security Properties:
                                     Base Virtualization Support
                                     DMA Protection
                                     UEFI Code Readonly
                                     SMM Security Mitigations 1.0
                                     Mode Based Execution Control
                                     APIC Virtualization
                               Services Configured:
                               Services Running:
                               App Control for Business policy: Enforced
                               App Control for Business user mode policy: Off
                               Security Features Enabled:
Hyper-V Requirements:          A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Expected behavior

it should work finish the installation fine

Actual behavior

it fails with failed to add user to group ( -2147022676 baldr hyper-v administrators)

CRC Logs

Additional context

No response

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

Status

Work In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions