set numlock on for Hyper-v VM’s

Geplaatst: oktober 10, 2014 in Uncategorized
Tags:

Open PowerShell in administrator mode ( it won’t work if uac is turned on and no administrator mode )

batch:

# Only machines turned off can be updated
$offMachines = Get-Vm | Where-Object -Property State -EQ “Off”

# Enable the num lock flag
$offMachines | Set-VMBios -EnableNumLock

single vm:

Set-VMBios -VMName -EnableNumLock
( replace bij the actual vmname. If you need to find them: Get-VM )

Only machines that are powered off can be updated !

Plaats een reactie