Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


VBScript to Change Outlook Configuration?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,38961
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBScript to Change Outlook Configuration?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 VBScript to Change Outlook Configuration? - 10/20/2006 7:15:14 AM   
  rosado

 

Posts: 13
Score: 0
Joined: 4/8/2006
Status: offline
Hello!
 
I need to change the server name and the message delivery location for all my workstations and would like to put that into my vbscript logon script. I have, however, no idea on how to access these properties. I know I have to create a Outlook.Application object but have no idea of what are the properties I need to change?

I´ve been looking the posts here but they usually reffers to create a new profile. I actually need to change the current stuff...

Any help would be appreciated!

Rgds!

 
 
 
Post #: 1
 
 RE: VBScript to Change Outlook Configuration? - 10/23/2006 1:03:45 AM   
  Country73


Posts: 732
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
Are you saying that your Outlook Server has changed and you are wanting to automate the configuration on all workstations to point to the new mail server?


If so:
We just straightened this out at my work; we switched out our mail server (along with a new name for it) and had to figure out a way to change everyone's settings without causing too many problems, or too many calls to our Help Desk.

We already had a PRF file, configuration file for Outlook, so I just changed the mail server information in that file; pushed the new PRF file out to all the workstations (can be done through login script if you like).

quote:

The Microsoft® Outlook® profile file (PRF file) allows you to quickly create MAPI profiles for Microsoft Office Outlook 2003 users. The PRF file is a text file with syntax that Microsoft Outlook uses to generate a profile. By using a PRF file, you can set up new profiles for users or modify existing profiles without affecting other aspects of your Outlook (or Microsoft Office) installation. You can also manually edit a PRF file to customize Outlook to include Outlook settings or MAPI services that are not included in the Custom Installation Wizard user interface.


http://office.microsoft.com/en-us/assistance/HA011402581033.aspx

If the individual has never used Outlook at a particular workstation, then it will configure Outlook when launched normally. If they already used Outlook, then you need to get a little creative.
You can either create a shortcut to that PRF file, which will launch Outlook and change over the information, or instruct your users to go directly to that confige file to launch Outlook.

Hope this helps out

< Message edited by Country73 -- 10/23/2006 3:00:32 AM >

(in reply to rosado)
 
 
Post #: 2
 
 RE: VBScript to Change Outlook Configuration? - 10/25/2006 3:40:54 AM   
  Kristian


Posts: 15
Score: 0
Joined: 10/10/2006
Status: offline
Set objNet = WScript.CreateObject("WScript.Network")
Namer = objNet.UserName
AccountName = namer & "@mail_server"
SMTPAddress = namer & "@mail_server"


Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts", "00000001"


Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001\Account Name", AccountName, "REG_SZ"

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001\Connection Type", "0", "REG_DWORD"

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001\IMAP Prompt for Password", "1", "REG_DWORD"

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001\IMAP Server", "mail_server", "REG_SZ"

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001\IMAP Use Sicily", "0", "REG_DWORD"

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001\IMAP User Name", Namer, "REG_SZ"

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001\SMTP display name", Namer, "REG_SZ"

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001\Smtp email address", SMTPAddress, "REG_SZ"


Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001\Smtp Reply to email address", SMTPAddress, "REG_SZ"

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001\SmtP server", "mail_server", "REG_SZ"

(in reply to Country73)
 
 
Post #: 3
 
 RE: VBScript to Change Outlook Configuration? - 10/25/2006 3:48:26 AM   
  Kristian


Posts: 15
Score: 0
Joined: 10/10/2006
Status: offline
Use Office Resource Kit.

(in reply to Kristian)
 
 
Post #: 4
 
 RE: VBScript to Change Outlook Configuration? - 10/25/2006 7:39:04 AM   
  rosado

 

Posts: 13
Score: 0
Joined: 4/8/2006
Status: offline
Thanks to all! This will help a lot for sure. Rgds!

(in reply to Kristian)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBScript to Change Outlook Configuration? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts