Login | |
|
 |
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 >
|
|
| |
|
|
|
 |
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"
|
|
| |
|
|
|
 |
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.
|
|
| |
|
|
|
|
|