'IDforOE.vbs - Force Outlook Express 5 to prompt for an Identity '© Tom C. Koch - tkoch@mvps.org - revised 12-05-2000 ' 'This VBScript prompts the user to select an Identity and then 'launches Outlook Express. It does this by clearing the four 'values in "HKEY_Current_User\Identities" which tell OE which 'Identity is currently logged on. I suggest you save the script 'file to a safe location, then make shortcuts to it in those 'places where you now have shortcuts to Outlook Express itself. 'You can right-click a shortcut, then click Properties, then 'click Change Icon to select a more appropriate icon. The icon 'used for Outlook Express is in the file 'C:\PROGRAM FILES\OUTLOOK EXPRESS\MSIMN.EXE ' 'This script requires that the Windows Scripting Host is installed. 'This is installed automatically under Windows98 SE. If you run an 'earlier version of Windows you can download the WSH from Microsoft: ' http://www.microsoft.com/msdownload/vbscript/scripting.asp ' 'I wrote this script as an exercise in learning to use scripts in 'place of batch files. I originally distributed this idea in the 'form of a registry file (ClearID.reg) which cleared the 4 registry 'keys. It was called from a simple batch file (OELogon.bat) that also 'launched Outlook Express. Like all batch files, it was a bit slow. 'This script replacement is very fast, so I think it is a better choice. ' 'This script may be freely distributed. Set WshShell = WScript.CreateObject("Wscript.Shell") 'Clear the values from the registry WshShell.RegWrite "HKCU\Identities\Last Username", "" WshShell.RegWrite "HKCU\Identities\Last User ID", "" WshShell.RegWrite "HKCU\Identities\Default User ID", "" WshShell.RegWrite "HKCU\Identities\Start As", "" 'Launch Outlook Express WSHShell.Run "Msimn.exe"