quinta-feira, 22 de julho de 2010

Ativando o Numlock

How do I enable the NUM LOCK key for the logon screen?

This article was previously published under Q154529
NOTE This article does not apply to Windows NT 4.0 Terminal Server. It also does not apply to Windows 2000 Server or to Windows 2000 Advanced Server running Terminal Services.

Problem description
The status of the NUM LOCK key is specific for each user, and NUM LOCK is disab...

The status of the NUM LOCK key is specific for each user, and NUM LOCK is disabled by default. If you want the NUM LOCK key enabled for use before a user presses CTRL+ALT+DEL to log on, you must use Registry Editor to change the default behavior.

To have us fix this problem for you, go to the "Fix it for me" section. If you’d rather fix this problem yourself, go to the "Let me fix it myself" section.

Fix it for me
To fix this problem automatically, click the Fix this problem link. Next, click...

To fix this problem automatically, click the Fix this problem link. Next, click Run in the File Download dialog box, and then follow the steps in this wizard.


Fix this problem
Microsoft Fix it 50087


Note This wizard may be in English only; however, the automatic fix also works for other language versions of Windows.

Note If you are not on the computer that has the problem, you can save the automatic fix to a flash drive or to a CD, and then you can run it on the computer that has the problem.

Now go to the "Did this fix the problem?" section.

Let me fix it myself
Important This section, method, or task contains steps that tell you how to modi...

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756  (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows

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.

Did this fix the problem?
Check whether the problem is fixed. If the problem is fixed, you are finished wi...

Check whether the problem is fixed. If the problem is fixed, you are finished with this article. If the problem is not fixed, you can contact support (http://support.microsoft.com/contactus) .

References
217884  (http://support.microsoft.com/kb/217884/EN-US/ ) NUM LOCK Setting Rese...

217884  (http://support.microsoft.com/kb/217884/EN-US/ ) NUM LOCK Setting Reset After Logging Off Terminal Server
262625  (http://support.microsoft.com/kb/262625/ ) How to Set the NUM LOCK State at Logon Using a Logon Script 
----------------------------------------------------------------

How to Set the NUM LOCK State at Logon Using a Logon Script


To configure a script to change the NUM LOCK state, use the following steps:
  1. Start Notepad.
  2. Copy and paste the following data into the text file:

    set WshShell = CreateObject("WScript.Shell")
    WshShell.SendKeys "{NUMLOCK}"
         
  3. Save the file as Numlock.vbs. This properly creates the file with the .vbs extension.

    NOTE: The icon changes from a Notepad icon to a script icon. If the icon doesn't change, the file was probably saved as a text file. To change the icon, rename the file using the .vbs extension.
After you create the script, you can run the script at startup or by using Group Policy.

Running the Script at Startup

To configure the script to run locally using the Startup folder, copy the Numlock.vbs file to the user's startup folder that is normally found in the user's profile path. To configure the script to run for all users, put the script in the Startup folder in the All Users profile.

The following example shows the default path for this folder:
Documents and Settings\All Users\Start Menu\Programs\Startup

Running the Script Using Group Policy

To configure the newly created script to run using Group Policy, you must first copy the Numlock.vbs script file into the Group Policy logon script folder.

The following example shows the default path for a local logon script:
%SystemRoot%\System32\GroupPolicy\[User|Machine]\Scripts\Logon
The following example shows the path for a domain logon script:
%SysVolFolder%\Sysvol\Sysvol\Domainname\Scripts
After you copy the script to the appropriate location, use the following steps:
  1. Start Microsoft Management Console (MMC) by clicking Start, clicking Run, and then typing mmc.
  2. On the Console menu, click Add/Remove Snap-in.
  3. Click Add, click Group Policy, and then click Add.
  4. Click the appropriate Group Policy Object (the default selection is the local computer).

    NOTE: Click Browse to select a different Group Policy Object.
  5. Click Finish, click Close, and then click OK.
  6. In the Group Policy Management snap-in, locate the following folder:
    User Configuration\Windows Settings\Scripts (Logon/Logoff)
    NOTE: You can substitute the Computer Configuration folder for the User Configuration folder.
  7. Double-click the Logon script object. Click Add, click Browse, and then click the Numlock.vbs script.
  8. After you select the script, click Open, and then click OK.
  9. Click OK, and then close the Group Policy Management console.

Nenhum comentário: