• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2253
  • Last Modified:

Need sample script to add exchange profile to all users

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
  • 3
  • 2
1 Solution
vmamedovAuthor Commented:
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
vmamedovAuthor Commented:
bsharath, were you able to find a samle prf and vb script for this?
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: http://www.msfn.org/board/lofiversion/index.php/t72392.html

"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...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now