The PowerShell script New-LabVMsForHyperV.ps1 uses the following service name in line 89:
$Service = Get-Service -Name "Hyper-V Virtual Machine Management service"
On systems with a non-English system language (e.g., German), this fails because the service display name is localized. This results in a name conflict and prevents the script from running.
Steps to Reproduce
- Install Windows Server or Windows 11 in German
- Enable the Hyper-V role
- Run New-LabVMsForHyperV.ps1
- Error occurs at line 89, service not found
Expected Behavior
The script should work regardless of the system language.
Proposed Fix
Replace the localized display name with the language-independent service name vmms:
$Service = Get-Service -Name "vmms"
This ensures consistent execution across all system languages.