Microsoft

TR Community tip: Create a VB script to easily access password-protected accounts in IE

In this quick tip by TR member Jacky Howe, learn how to create a VB script that helps you easily access a password-protected account in Internet Explorer.

This tip was provided by Jacky Howe.

You can create a VB script to easily access a password-protected account in Internet Explorer. Simply save the script to a folder and then create a shortcut to it. If you're running Windows XP, place the shortcut in C:\Documents and Settings\UserName\Favorites\Links. Windows Vista or Windows 7 users should place the shortcut in C:\Users\UserName\Favorites\Links.

Note: The Favorites folder that you are navigating to is displayed as the Favorites Bar. In Internet Explorer, you'll have to enable the Favorites Bar under View | Toolbars to access the links.

When you get to the site that requires your username and password, place the cursor in the first field, which is normally the Logon ID, and left-click the appropriate link in your Favorites Bar. User information is copied over, and you'll have access to the site. Log off when you're finished.

Below is an example of the script. Copy and edit the text in NotePad. Also, be sure to give it a recognizable name with a .vbs extension. The names can be edited on the Favorites Bar by right-clicking and selecting Rename.

set WshShell = WScript.CreateObject("WScript.Shell")

WScript.Sleep 600

WshShell.SendKeys "Logon ID in here"

WScript.Sleep 600

WshShell.SendKeys ("{Tab}")

WScript.Sleep 600

WshShell.SendKeys "Password in here"

WScript.Sleep 600

WshShell.SendKeys "~"

Send in your own TR Community tip that we can feature in the TR Out Loud blog to trol@techrepublic.com.

About Sonja Thompson

Sonja Thompson started at TechRepublic in October 1999. She is a former Senior Editor at TechRepublic.

Editor's Picks

Free Newsletters, In your Inbox