Need sample script to add exchange profile to all users

Posted on 2007-11-19
Last Modified: 2010-06-08
I am looking for a vb script to add exchange profile to all users, the script should automatically add the user account to outlook and point to the specific server, the idea is so when a user clicks on outlook it should just open WITHOUT the wizard and the user should see their mailbox. The script should also ignore users whos outlooks/exchange profiles are already setup

the environment is that all users are on outlook 2003 and the exchange server is 2003 with sp2
there is a mix of windows 2000 and windows xp users

I am looking for BOTH a sample prf file and the sample vb script

Lets assume the exchange server is called exchserv and the domain is sub.domain.local

thanks in advance for all your help
Question by:vmamedov
  • 3
  • 2
LVL 11

Expert Comment

ID: 20312549
LVL 11

Expert Comment

ID: 20312564

Author Comment

ID: 20314341
I am looking for a script that I can implement and just change the values to fit my environment, a sample prf and a sample vbs script

thanks in advance

Author Comment

ID: 20397977
bsharath, were you able to find a samle prf and vb script for this?
LVL 11

Accepted Solution

bsharath earned 500 total points
ID: 20400562
Here are some moe links to help you

For office 2007 unattended installation I have got some links which can do it. I have also created the installation package from here.

You will need an Enterprise or Corporate Disc and Product Key to create a unattended install of Office 2007, it is done differently in Office 2007 as it uses MSPs (Windows Installer Patches) rather than MSTs (Windows Installer Transforms) to customize the install sequence.

There is a thread, with instructions on MSFN:

"For Professional Plus, you need to follow these steps:
1. Copy the install source files to your application server.
2. Run setup.exe /admin to configure product options, enter the serial number, etc.
3. Save the resulting .msp file into the Updates folder in the Office 2007 directory on your application server.

I got this which I saved it for future use. Hope this helps.

Here is another excellent procedure to configure outlook profiles automatically. It is a MST file with which you can combine with the unattended installation of office 2003 and later you can login to any machine and your outlook is ready to user even with the pst created for you.

Download the Office Resource Kit files from here

Here is the installation procedure

When you install Outlook you should configure the outlook profile as part of creating a transform file with the Custom Installation Wizard.  If you have already deployed outlook then you can modify the installation using the custom maintenance wizard.

Create a maintenance wizard file that configure outlook with the name of your exchange server and %username% as the user name, then copy the maintwiz.exe file to the startup scripts folder of a GPO and create a startup script to apply the maintwiz file to the machine.

Once applied, new profiles will simply have to launch outlook and it will connect to exchange automatically.  I generally create a CNAME for the Exchange server called "mail" and configure outlook to point to this.  This way if you migrate to a new exchange server you wont have to modify all your desktops again.

The Custom Installation Wizard and the Custom Maintenance Wizard are both part of the Office Resource Kit.
I have created a MST file for Office 2003 with Sp2.While installing Office just copy the below command and paste in Run Prompt > Enter

\\Machinename\Office2003withSp2\setup.exe TRANSFORMS="\\Machinename\Office2003withSp2\New Custom Setup File.MST" /qb-

If you have a different installation path change the content marked in red. Make sure the folders dont have spaces.

The installation is done automatically without any users interface with Sp2.
The main purpose of using this code is when ever any user logs in with his user name for the first time the outlook will get configured by itself.

1.      Exchange name
2.      Username
3.      PST file is created in D drive.
4.      Route to PST for receiving mails
All are done by itself.

This saves 5 min of our time to configure Outlook for new joiners. We can install once in a Image to use it henceforth.

If you are configuring for a existing user you just need to change the PST of the user to the old PST path.

Hope this helps...

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an addendum to the following article: Acitve Directory based Outlook Signature ( The script is fine, and works in normal client-server domains…
Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question