当我在 Windows 10 1809 的 Hyper-V 下启动 Ubuntu 20.04 时 NumLock 已关闭。
如何预防?
我尝试了什么
听到这个消息很糟糕,但我们仍然没有任何针对 Gen 2 VM 的解决方案。 目前,为了解决这个问题,您只能使用第 1 代虚拟机。 PS:我希望微软开发团队有一天能找到这篇文章并修复这个错误:)
在这里回答:https://superuser.com/a/1773601/1150410 快速修复
$WshShell = New-Object -ComObject WScript.Shell
if ([console]::NumberLock -eq $false) {
$WshShell.SendKeys("{NUMLOCK}")
}