1-800-264-9029|602-266-8500
  • Course Schedule
    • Microsoft Training
      • Microsoft Fundamentals Training
      • Windows Client
      • Teams
      • Teams / Microsoft 365 / MS365
      • Windows Server 2019
      • SQL Server Transact-SQL
      • SQL Server Administration
      • SQL Server Business Intelligence
      • Power BI
      • Power Platform
      • Azure
      • Data Engineering / Machine Learning
      • Artificial Intelligence (AI)
      • M365 Messaging
      • PowerShell
      • System Center
      • SharePoint
      • Microsoft Security
    • Cloud Computing
      • Azure
      • Amazon Cloud (AWS)
    • Developer Training
      • DevOps
      • Docker Kubernetes
      • Web Development
      • .NET Development and Visual Studio
      • Java Programming
      • Python
    • Cisco Training
      • Cisco CCNA
      • Cisco Routing and Switching
      • Cisco Security
      • Cisco Wireless
      • Cisco Data Center and Storage
      • Cisco Collaboration
      • Cisco Contact Center
      • Cisco DevNet
    • CompTIA Certification
      • CompTIA A+
      • CompTIA Network+
      • CompTIA Security+
    • Business Training
      • Project Management (PMP)
      • ITIL
      • NIST
      • Business Analysis (PBA & CBAP)
      • Agile
    • IT Security Training
      • ISC2 / CEH / Cybersecurity
      • NIST
    • Wireless Training
      • Wireless Networking
    • Other Training
      • VMware
      • NetApp
      • F5 Networks
      • Citrix
  • Exams
    • Student Pricing
  • Subscriptions
  • Interface Gold
    • RemoteLive™
    • Replay™
    • Interface Gold™ Benefits
  • On-Demand
  • Resources
    • Tech Blogs
    • Tech Videos
    • Microsoft Learn Catalog
  • About
    • Instructors
    • TechPaks
    • Our Video Training Timeline
    • Training Room Rental
    • Group Training & Private Classes
    • Contact

Why does my Numlock key keep resetting?

Home > Blogs > Windows 7 > Why does my Numlock key keep resetting?

Why does my Numlock key keep resetting?

3 6 Steve Fullmer
Added by Steve Fullmer August 27, 2014

While teaching a Configuring Windows 8/8.1 (20687D) course last week, one of my students exclaimed the very title of this blog – “Hey, why does my Numlock key keep resetting?”

Just the type of trivia that can gain an instructor’s attention.  Thus, during their first long lab, I began my research.

The symptoms:  Student M prefers having the Numlock key set for use of the ten key pad on his keyboard.  He selects the Numlock key, logs into the Windows 2012R2 server that serves as a platform for the class, and proceeds to take notes, browse the web, and perform his labs.  He notes intermittently that the Numlock key is being reset to off.

Gremlins?  User error?  Classmate prank?

Potential cause(s) based on research:

Fast Startup mode for Windows 7 and Windows 8 can result in the Numlock key being turned off during startup.  A registry setting may resolve the issue, although the appropriate registry setting only solves the problem most of the time (at least according to responses in the blogs that I found.)  One of the better answers was provided by Shyam Sasindran, MVP on the Windows Club.

Enable Num Lock on startup or reboot in Windows 8 | 7

Fast Startup may be the cause, though a review of the registry key settings indicates the correct value as suggested in The Windows Club article: registry key HKEY_USERS\Default\Control Panel\Keyboard\InitialKeyboardIndicators has a value of 2147483648.

This answer is actually a carryover from Windows XP.  From Microsoft support: Let me fix it myself.

To enable NUM LOCK before a user logs on, follow these steps:

  1. Run Registry Editor.
  2. Move to:
    HKEY_USERS\.Default\Control Panel\Keyboard
  3. Change the value for InitialKeyboardIndicators from 0 to 2.

Additional research identifies that:

0 = Numlock is turned off after logon
2 = Numlock is turned on after logon

And a little more research found a similar article from the Hampel Group How to turn on/off Keyboard NumLock on bootup in Windows that yields even better details.

0 – Turn all indicators Off (Numlock, CapsLock, ScrollLock)
1 – Turn CapsLock On
2 – Turn Numlock On
3 – Turn CapsLock and Numlock On
4 – Turn ScrollLock On
5 – Turn CapsLock and ScrollLock On
6 – Turn Numlock and ScrollLock On
7 – Turn all indicators On (Numlock, CapsLock, ScrollLock)

So one is actually only enabling a default setting for the user.

Microsoft offers another option: How to Set the NUM LOCK State at Logon in Windows XP specifically for Windows XP VBS script attached at login to a user account.

At this point, we now know how to set the startup and persistent mode for the Numlock key on a standalone system on a per user basis.  Unless, of course, one taps the Numlock key itself.

Though this does not explain directly why the symptoms persist for a single user on the Windows 2012R2 server providing Hosted services for Student M.

Decided to observe and then re-create the scenario.  Login to server (host).  Select Numlock key and confirm its operation.  Start Hyper-V.  Start a virtual machine.  Virtual images for Windows 7, Windows 8, and Windows Server 2012R2 are all used in this class.  Tap the Numlock key to enable it.  As any of the virtual machines are started or restarted, the HOST Numlock key is reset to ‘off’.  Tried the Caps Lock key, with the same results.  If one logs into the Windows 7, Windows 8, or Windows Server virtual instances and then selects the Numlock key, it stays set until a different virtual machine is started or reset.

So the situation results because of the virtual machine environment.

Found the culprit.  Start, stop, restart, authentication on any virtual instance resets the Numlock key to off – unless the most recent authentication applied has the Numlock key enabled within the user’s profile.

If the Numlock key is enabled while an account is logged in and active on a virtual machine, restart of the virtual machine turns off the Numlock key.  Logging back into the machine results in the Numlock key being turned on – as long as it was set while the user profile was active.   Essentially the behavior of the Numlock key is user specific, and stored on a per user profile basis.

And as any virtual system is started, or authentication on a virtual machine occurs, the state of the Numlock key changes to match the most recent activity.

This answer alone does not resolve why starting any virtual machine turns off the HOST Numlock key.  Curious as to whether the scenario only applies to Hyper-V, I tested the symptom on a Windows 7 Ultimate platform hosting Windows Virtual PC and an instance of Windows 7 Enterprise.  Extremely similar if not identical results.  Restart the virtual client and the Numlock key is reset.  If Numlock is turned on once a user has authenticated, the restart of the virtual machine turns off the Numlock, and authentication will automatically turn it back on.

Apparently others have experienced the scenario, and most of the solutions I discovered are uniquely platform specific and potentially complex.  For instance, a virtual Windows Server2008 running on VMWare Workstation 7.1.0 suggests force modifying the BIOS of the virtual machine to enable the Numlock key at startup of the image.

A newer Technet article addresses setting Hyper-V to enable Numlock  through BIOS, either through Hyper-V or with a Powershell script.  Tested this solution on Windows 2012R2 Hyper-V server, and the selection of Numlock Key for the virtual BIOS does not keep the Numlock key on once the virtual machine arrives at the authentication screen.  The recommended script seems to intermittently work, though I did not totally shut down all of the virtual machines AND Hyper-V before running it.

Starting and stopping virtual machines, or logging in and out, continues to reset the Numlock key.

Nate Johnson offers a direct solution Win8/Hyper-V 2012 Enable Num Lock on All Virtual Machines.

for enabling all virtual machines under Windows 8/8.1 or Windows Server 2012(R2) to start with the Numlock on.  As he notes, all of the virtual machines must be off for his recommended script to work thoroughly.  You really do need an all or nothing approach, otherwise each virtual system start will turn off the Numlock  (or turn it on if you implemented the bulk change), and each authenticated user will reset the Numlock key to the user’s preferred state.

So there you have it… Numlock needs to be controlled on a per user, per profile basis.  If you have multiple virtual instances and accounts that you use, you will have some work to do in order to assure that they all have Numlock on as the preference.

Or you can always just tap the key one more time.

Hope to see you in the classroom or online!

Steven Fullmer
Interface Technical Training Staff Instructor

Subscribe to this author's posts feed via RSS

You May Also Like

  • How to Configure Navigation in SharePoint Publishing Sites
    How to Configure Navigation in SharePoint Publishing Sites
  • On the Topic of Mastery
    On the Topic of Mastery
  • Part 3 How to Import a CSV Text File into SharePoint 2013 – Creating the list in SharePoint
    Part 3 How to Import a CSV Text File into SharePoint 2013 –…
  • Using Navigation Controls in a Collaboration Site in SharePoint
    Using Navigation Controls in a Collaboration Site in…
Category Windows 7, Windows 8

Tags

Caps Lock, Hyper-V, InitialKeyboardIndicators, keyboard, Numlock, Powershell script, regedit, registry, Reset, user profile, Windows 7, Windows 8, Windows 8.1, Windows Virtual PC

Videos You May Like

Agile Methodology in Project Management

Agile Methodology in Project Management

0 184 0

In this video, you will gain an understanding of Agile and Scrum Master Certification terminologies and concepts to help you make better decisions in your Project Management capabilities. Whether you’re a developer looking to obtain an Agile or Scrum Master Certification, or you’re a Project Manager/Product Owner who is attempting to get your product or … Continue reading Agile Methodology in Project Management

Creating Users and Managing Passwords in Microsoft Office 365

Creating Users and Managing Passwords in Microsoft Office 365

0 786 4

In this Office 365 training video, instructor Spike Xavier demonstrates how to create users and manage passwords in Office 365.   For instructor-led Office 365 training classes, see our course schedulle: Spike Xavier SharePoint Instructor – Interface Technical Training Phoenix, AZ 20347: Enabling and Managing Office 365    

How to Configure Navigation in SharePoint Publishing Sites

How to Configure Navigation in SharePoint Publishing Sites

0 1321 3

For more SharePoint training videos in this series, see: Part 1 – Using Navigation Controls in a Collaboration Site in SharePoint Part 2 – Using Navigation Controls in a Publishing Site in SharePoint Part 3 – Configuring SharePoint Navigation in a Publishing Site – Activating the Publishing Feature Part 4 – » How to Configure Navigation in … Continue reading How to Configure Navigation in SharePoint Publishing Sites

Write a Comment

See what people are saying...

    Share your thoughts...

    Please fill out the comment form below to post a reply.

    Microsoft Subscription

    Blogs by Technology

    • Amazon AWS (2)
    • Azure Cloud Computing (2)
    • Business Analysis (8)
    • Cisco (125)
    • CompTIA (71)
    • Developer Visual Studio / ASP.NET (62)
    • Exchange Server (47)
    • ITIL / COBIT (33)
    • Lync Server (3)
    • Office 365 (5)
    • PMP Project Management (63)
    • PowerShell (81)
    • Security (47)
    • SharePoint (93)
    • SQL Server (78)
    • System Center (13)
    • Web Development (60)
    • Windows 10 (65)
    • Windows 7 (124)
    • Windows 8 (85)
    • Windows Server (74)
    • Windows Server 2012 (90)
    • Windows Server 2016 (14)
    • Wireless (9)
    • Wireshark (5)

    Blogs by Instructor

    • Dan Wahlin (44)
    • Don Jones (15)
    • Dr. Avril Salter (6)
    • Greg Richard (1)
    • Interface (49)
    • Jason Helmick (38)
    • Jeff Jones (18)
    • Jeremy Cioara (8)
    • Mark Jacob (128)
    • Mark Thomas (28)
    • Mike Danseglio (93)
    • Mike Pfeiffer (35)
    • Peter Avila (32)
    • Rick Trader (127)
    • Spike Xavier (86)
    • Steve Fullmer (163)
    • Suzanne Van Hove (1)

    Blogs You May Like

    • Creating Lists and Libraries in SharePoint
    • How to Configure Navigation in SharePoint Publishing Sites
    • Using Navigation Controls in a Publishing Site in SharePoint
    • Using Navigation Controls in a Collaboration Site in SharePoint
    • Part 3 How to Import a CSV Text File into SharePoint 2013 – Creating the list in SharePoint
    • Part 5 – Importing a CSV file into SharePoint 2013: Create Home Page Dashboards

    Video Courses

    • ITIL 4 Foundation Certification Video Training Course
    • Project Management Professional (PMP®) Certification Video Training PMBOK® 6th Edition
    • PMI-PBA Business Analysis for IT Analysts and Project Managers (PMI-PBA)® Certification
    • SharePoint Designer 2013 for American Express
    • CompTIA Network+ (Coming Soon!)
    • CompTIA Security+ (Coming Soon!)
    • CompTIA A+ Certification Core 1 1001 (Coming Soon)
    • CompTIA A+ Certification Core 2 1002 (Coming Soon)

    Live Training Courses

    • NET+007: CompTIA Network+ Certification Training + N10- 007 Exam
    • PowerShell - 10961: Automating Administration with Windows PowerShell
    • ITIL4® Foundation Certification Course with Exam
    • AZ-100: Azure Infrastructure and Deployment Training
    • PMI-PBA: Business Analysis for IT Analysts and Project Managers (PMI-PBA Certification)
    • Cisco CCNA - ICND1v3 Interconnecting Cisco Networking Devices CCNA Part 1
    • COBIT205: COBIT® 5 Foundation and Implementation IT Governance Training
    • DEV415: Microservices with ASP.NET Core and Docker
    • IT Security - SEC+501: CompTIA Security+ with Certification Exam SY0-501
    • SQL Server - SQL101: Introduction to Transact SQL
    Facebook
    Twitter
    Linked In
    Comment
    EMAIL

    About Us

    • Interface Gold™ Benefits
    • TechPaks
    • Training Room Rental
    • Group Training & Private Classes

    Contact Us

    3115 N 3rd Ave
    G130
    Phoenix, AZ 85013

    602-266-8500

    Stay in touch on our social channels!
    Twitter
    Facebook
    LinkedIn
    State of Arizona Contract # ADSPO18-210228

    Copyright © 2022 Interface Technical Training. All Rights Reserved.

    Interface Live Training Terms and Conditions Terms of Use Microsoft Subscription Terms and Conditions Privacy Policy WIOA Policy