Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Need sample script to add exchange profile to all users

Posted on 2007-11-19
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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: 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...

Featured Post

Industry Leaders: 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

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…
Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

610 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