If Windows alters the value of the 'InitialKeyboardIndicators' value it means that you have placed an incorrect lock on the 'Keyboard' key. After setting the 'InitialKeyboardsIndicators' value right-click the 'Keyboard' key. Next click 'Permissions...'
(NOTE: The 'Permissions for Keyboard' Window should Appear.) In the section titled 'Permissions for RESTRICTED' click the button labelled 'Advanced.' (NOTE: The 'Advanced Security Settings for Keyboard' Window should Appear.) In the list box titled 'Permission
entries:' there should be at least four lines of data. Look at the column of data headed: Name. Select the top-most entry of the form: <Your Name>(<Computer Name><Your Name>). Click the button labelled 'Edit...' located beneath the list box. (NOTE: The 'Permission
Entry for Keyboard' Window should Appear.) In the list box titled 'Permissions:' there should be an entry named: Set Value. This value should have two check boxes to its right. Set the right-most check box. Click: OK. Click: Apply OK. Repeat the last step.
On my computer the value for 'InitialKeyboardsIndicators' is set to '1' and 'Num Lock' is always 'Off.'
There is a table in another forum which indicates the eight values which 'theoretically' can be assigned to the 'InitialKeyboardsIndicators' value. These values range from ''0' to '7.' Fortunately the posting provided the address of the website from which these
values were taken. I looked at the values on the website. The website indicated that the values were for 'Windows XP.' I tried a couple of the values and discovered that THEY DID NOT APPLY to Windows 7. If I remember correctly a value of '2' supposedly turns
on both 'Caps Lock' and 'Num Lock.' In Windows 7 this does not hold. A value of '3' also does not adhere to the settings for Windows 7 either.
Please note that if you would like to lock the 'InitialKeyboardsIndicators' value for several users you will need to set and lock the value for each user individually. There is no setting which will let you set the value for all users.
I have not had the chance to test this routine on a computer with multiple users. Under Windows XP each user was assigned a unique ID consisting of something like 25 characters. Whenever a user logged in the values for that user were copied into HKEY_CURRENT_USER.
If Windows 7 does likewise locking the 'keyboard' key in HKEY_CURRENT_USER might not be enough. In my registry my own personal data is stored in: HKEY_USERS\S-1-5-21-1633903244-1207972891-1032356077-1003. If you were to go to 'Control Panel\Keyboard' you would
find that the 'keyboard' key is locked in the manner I have described above. (NOTE: Stay away from registries ending in '_Classes.' For example '...6077-1003_Classes.') You may have to set and lock the 'keyboard' key for each individual user.
If you have multiple users with different desires this should theoretically be possible. If a user likes the default behaviour of Windows 7 then do not lock the 'Keyboard' key for that particular user. Make sure that the 'Keyboard' key in HKEY_CURRENT_USER
matches the 'Keyboard' key settings and lock for the corresponding key for that user's registry settings!
Now we come to what might seem to be a difficult situation to solve: How does one discover which HKEY_USERS' key belongs to which user? This is tedious, but quite simple. Get out of the registry and follow the following steps:
- Open Windows Explorer
- Click: Organize 'Folder and search options'
- NOTE: The 'Folder Options' Window should Appear
- Select the 'View' Tab
- In the 'Advanced settings:' Section under 'Files and Folders' there should be Two Radio Buttons under the 'Hidden files and folders' Subsection
- Select the Radio Button labelled: Show hidden files, folders, and drives
- Click: Apply OK
- NOTE: The 'Folder Options' Window should Vanish
- VERY IMPORTANT: Click: Organise Close
- Open Windows Explorer
- Go to: Users<Name of the User>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
- Click: 'New folder'
- Provide a Unique Name for the Folder which Contains the <Name of the User> (i.e. St Bernard Registry Locator Menu Folder)
- Repeat Steps 11 - 13 for Each User
- Click: Organize Close
- Open the Windows' Registry
- Search the Keys for One of the Folders that were Created
- The search will take you into the registry data for that particular user
- NOTE: Do Not Remove the Folder!
After you have appropriately set the initial 'Num Lock' status for each individual user and insured that the setting in HKEY_CURRENT_USER is set to mirror the setting for the current user exit the registry.
Now, go into Windows Explorer and remove the folders you created. Next:
- Click: Organize 'Folder and search options'
- NOTE: The 'Folder Options' Window should Appear
- Select the 'View' Tab
4) Click: 'Restore Defaults'
- Click: Apply OK
- NOTE: The 'Folder Options' Window should Vanish
7) Click: Organise Close
NOTE: ALTERING THE REGISTRY IS EXTREMELY DANGEROUS AS ERRORS CANNOT ALWAYS BE CORRECTED. I ONCE REMOVED AN INCORRECT KEY AND MY COMPUTER LOCKED. AFTER UNPLUGGING AND PLUGGING THE COMPUTER BACK IN WINDOWS REFUSED TO BOOT. I HAD TO REFORMAT MY HARD DRIVE.
Programmer for Visual C++ 6.0, and Microsoft Office including Access