? QA Design Gurus: Test your code without disturb by other user by putting message on login screen of your test machine

Aug 17, 2015

Test your code without disturb by other user by putting message on login screen of your test machine

If you want to perform some testing without any bodies interference in your test machine which has multiple user access, then you can configure your test machine by user-defined message to the login screen of your test machine.
We can do it easily by doing some registry changes.
Editing the registry
It is important to keep in mind that the registry is vital to the operating system and changing it can be dangerous if you inadvertently make a mistake. Do it if you really need it.
To launch the Registry Editor, click the Start button, type regedit in the Start Search box, and press [Enter]. When the UAC dialog box appears, respond appropriately.

Getting started
Once the Registry Editor launches, locate the following key:
FIGURE I
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
From this key, shown in Figure I, you'll be able to make all the following changes to the Login screen.

The warning message
The warning message that you'll add to the Windows 7's login screen is actually made up of two parts: the title and the message text.
To add a title to the warning message, locate and double-click the legalnoticecaptionvalue. When the Edit DWORD dialog box appears, type the title in the Value data text box, as shown in Figure II, and click OK. As you can see, for my example I chose to use a Welcome message, but you can essentially type anything that you want for your title. You can use up to 80 characters, including spaces, for the title.




FIGURE II


























The legalnoticecaption value allows you to specify a title for your warning message.
To add the warning message, locate and double-click the legalnoticetext value. When the Edit DWORD dialog box appears, type the warning message in the Value data text box, and click OK. 


The new logon display
Now when you restart your system and access the login screen, you'll see the warning message, as shown in Figure III. Just click OK and you'll see your user icon and be able to continue with the login operation.


FIGURE III








No comments:

Post a Comment