前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Disable Num Lock notification in VMware Workstation

Disable Num Lock notification in VMware Workstation

原创
作者头像
Windows技术交流
发布2021-09-29 23:48:10
1.5K0
发布2021-09-29 23:48:10
举报
文章被收录于专栏:Windows技术交流

http://www.edugeek.net/forums/network-classroom-management/102744-vmware-numlock-num-lock-off-num-lock-num-lock-off.html

Main → Keyboard Features → NumLock → Off切换为On

添加描述

添加描述

https://www.technipages.com/enable-disable-numlock-windows-startup

Method 1 – Registry Setting

1.Hold the Windows Key then press “R” to bring up the Run dialog box.

2.Type “regedit“, then press “Enter“.

3.Navigate to the following location in the registry:

  • HKEY_USERS
  • .Default
  • Control Panel
  • Keyboard

4.Change the value of InitialKeyboardIndicators

  • Set it to 0 to set NumLock OFF
  • Set it to 2 to set NumLock ON
PowerShell Script

Use the following PowerShell code:

Enable Num Lock:

  • Set-ItemProperty -Path 'Registry::HKU\.DEFAULT\Control Panel\Keyboard' -Name "InitialKeyboardIndicators" -Value "2"

Disable Num Lock:

  • Set-ItemProperty -Path 'Registry::HKU\.DEFAULT\Control Panel\Keyboard' -Name "InitialKeyboardIndicators" -Value "0"

Method 2 – Function Keys

You may have inadvertently pressed a key combination on your keyboard to cause certain letters on your keyboard to be used as a numeric keypad. This is normally the case for laptop users.

In most cases, you will have a “Fn” and “NumLk” key that can be used to toggle this setting on or off. Hold the “Fn” key, then press “NumLk” to toggle the numeric keypad on or off.

Method 3 – BIOS Setting

Most computers, including virtual machines will have a BIOS setting that controls whether or not NumLock is enabled or disabled at startup. You can usually enter the BIOS by pressing a certain key such as “Delete” or “F1” at startup before Windows loads. Once in the BIOS, you should be able to find a setting that controls NumLock.

Method 4 – Startup or Logon Script

If you’re an administrator looking for a way to set the Num Lock on at startup, you can do so using a logon script. There is no specific Group Policy setting to accomplish this. Instead use the following.

  1. Copy and paste the following into a Notepad document, then save it as “numlock.vbs“: set WshShell = CreateObject("WScript.Shell") WshShell.SendKeys "{NUMLOCK}"
  2. Do one of the following:
  • Place the “numlock.vbs” file in the “Startup” folder of the target computer or user.
  • Run the script through Group Policy using these steps:
  1. Place the “numlock.vbs” in one of the following folders:
  2. Local logon script path = “%SystemRoot% \ System32 \ GroupPolicy \ User Computer\ Scripts \ Logon
  3. Domain logon script path = “%SysVolFolder% \ Sysvol \ Sysvol \ DomainName \ Scripts
  4. Hold down the Windows Key and press “R” to bring up the Windows Run dialog box.
  5. Type “mmc“, then press “Enter“.
  6. Go to “File” > “Add/Remove Snap-in” > “Add” > “Group Policy“.
  7. Select the GPO you wish to use by selecting “Browse“. The default is the local computer.
  8. Select “Finish” > “Close” > “OK“.
  9. From the Group Policy Management snap-in, navigate to “User Configuration” or “Computer Configuration” > “Windows Settings” > “Scripts“.
  10. Double-click “Logon script“, then go to “Add” > “Browse“, then select “numlock.vbs“.
  11. Select “Open” > “OK” > “OK“.

Note: The “numlock.vbs” script will simply act like it is pressing the “Num Lock” key once. So really, it will toggle it to the opposite of what it is by default. It’s probably better to use the Registry method, but this method is handy when you’re in a bind.

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Method 1 – Registry Setting
    • PowerShell Script
    • Method 2 – Function Keys
    • Method 3 – BIOS Setting
    • Method 4 – Startup or Logon Script
    相关产品与服务
    云服务器
    云服务器(Cloud Virtual Machine,CVM)提供安全可靠的弹性计算服务。 您可以实时扩展或缩减计算资源,适应变化的业务需求,并只需按实际使用的资源计费。使用 CVM 可以极大降低您的软硬件采购成本,简化 IT 运维工作。
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档