Create a script or batch file to open outlook exoress with different identity

M

Martin Miller

Please help me. My wife who has little experience with computers now has
her own email address. I wish to have an icon on my desktop which will open
Outlook Express with her Identity so that she can receive and send emails.
How do I create a batch or script file that will automatically open Outlook
express with her identity??
 
R

Ramesh, MS-MVP

Hi Martin,

Use this VBScript

----------------------------------------------------
Set Shell = WScript.CreateObject("Wscript.Shell")
MyGUID = "{D84D1456-EA50-47D6-84EF-BD4426DD0A40}"
Shell.Regwrite "HKCU\Identities\Last User ID", MyGUID,"REG_SZ"
Shell.run "msimn.exe"
----------------------------------------------------

This line is given as an example, the actual GUID varies in your system.
--------------------------
MyGUID = "{D84D1456-EA50-47D6-84EF-BD4426DD0A40}"
--------------------------

To find the correct GUID for an identity, open Regedit and navigate to:

[HKEY_CURRENT_USER\Identities\]

Copy the correct GUID and paste it in the script (MyGUID line)
 
G

Guest

Dear Ramish,
To create the script file what extension should I give the
saved file and do I just run the file by double-clicking on it?
Sorry to be a bother
Martin

Ramesh said:
Hi Martin,

Use this VBScript

----------------------------------------------------
Set Shell = WScript.CreateObject("Wscript.Shell")
MyGUID = "{D84D1456-EA50-47D6-84EF-BD4426DD0A40}"
Shell.Regwrite "HKCU\Identities\Last User ID", MyGUID,"REG_SZ"
Shell.run "msimn.exe"
----------------------------------------------------

This line is given as an example, the actual GUID varies in your system.
--------------------------
MyGUID = "{D84D1456-EA50-47D6-84EF-BD4426DD0A40}"
--------------------------

To find the correct GUID for an identity, open Regedit and navigate to:

[HKEY_CURRENT_USER\Identities\]

Copy the correct GUID and paste it in the script (MyGUID line)
 
R

Ramesh, MS-MVP

Martin,

Save it with a .vbs extension (Example: "oeid.vbs")

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


nit said:
Dear Ramish,
To create the script file what extension should I give the
saved file and do I just run the file by double-clicking on it?
Sorry to be a bother
Martin

Ramesh said:
Hi Martin,

Use this VBScript

----------------------------------------------------
Set Shell = WScript.CreateObject("Wscript.Shell")
MyGUID = "{D84D1456-EA50-47D6-84EF-BD4426DD0A40}"
Shell.Regwrite "HKCU\Identities\Last User ID", MyGUID,"REG_SZ"
Shell.run "msimn.exe"
----------------------------------------------------

This line is given as an example, the actual GUID varies in your system.
--------------------------
MyGUID = "{D84D1456-EA50-47D6-84EF-BD4426DD0A40}"
--------------------------

To find the correct GUID for an identity, open Regedit and navigate to:

[HKEY_CURRENT_USER\Identities\]

Copy the correct GUID and paste it in the script (MyGUID line)

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


Martin Miller said:
Please help me. My wife who has little experience with computers now
has
her own email address. I wish to have an icon on my desktop which will
open Outlook Express with her Identity so that she can receive and send
emails. How do I create a batch or script file that will automatically
open Outlook express with her identity??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top