Sunday, 1 June 2014

Automatically Configure Email accounts in Microsoft Outlook

Most settings for Microsoft® Outlook® can be efficiently configured, updated, and deployed to users by using standard deployment tools — typically by using the Custom Installation Wizard before installation and the Custom Maintenance Wizard after installation. Settings can also be captured by using the Office Profile Wizard, which results in an OPS file that can be deployed to users.

However, to modify existing settings or to configure settings that are "outside the norm" — such as those not included in the wizards — you can create and edit an Outlook profile file (PRF file), and then deploy that to your users by using the installation or maintenance wizards, or by deploying the PRF file by itself.

To perform these configurations follow these steps

1. Go to Directory where you have stored MS Office setup via cmdline and type
C:\Office 2007>setup.exe /Admin

2. Microsoft Office Customization Tool will open.

3.Go to Outlook ->Outlook Profile ->New Profile

4. Go to Add Accounts Section and configure mail accounts LDAP, IMAP or POP etc.

5.To export these in PRF file format go to “Remove Accounts & export settings”  and click “Export Profile Settings” button

6. By default this prf file overwrites the default profile which is not acceptable.

 To append these settings to default profile open prf file that in text editor and do the following
               Remove line containing ProfileName=”profile name you set”
             Change “OverwriteProfile=Yes” to “OverwriteProfile=Append
·         Change “ModifyDefaultProfileIfPresent=true
·         Save File and Exit

7. Now Press windows +R and regedit
And go to HKEY_CURRENT_USER\Software\Microsoft\Office\{outlookversion}\Outlook\Setup
[12.0 for Outlook 2007 and 15.0 for Outlook 2010]
In my case it was HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Setup
·         Delete the First-Run key
·         Add New String Key ImportPRF and give complete path of prf file

Alternatively you can use my vbscript code which works for all MS Outlook Versions
Download it From here

8.Open MS Outlook and Voila!! Your email accounts are configured.


No comments:

Post a Comment