Solved

Need sample script to add exchange profile to all users

Posted on 2007-11-19
5
2,211 Views
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
0
Comment
Question by:vmamedov
  • 3
  • 2
5 Comments
 
LVL 11

Expert Comment

by:bsharath
ID: 20312549
0
 
LVL 11

Expert Comment

by:bsharath
ID: 20312564
0
 

Author Comment

by:vmamedov
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
0
 

Author Comment

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

Accepted Solution

by:
bsharath earned 500 total points
ID: 20400562
Here are some moe links to help you
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_22945584.html?sfQueryTermInfo=1+outlook+prf

http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_21790909.html?sfQueryTermInfo=1+outlook+prf


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

http://www.msfn.org/board/Office_2007_Unattended_Setup_and_Fine_tun_t72392.html
http://forum.landesk.com/showthread.php?t=9341


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

http://office.microsoft.com/en-us/ork2003/HA011401701033.aspx

Here is the installation procedure

http://office.microsoft.com/en-us/ork2003/HA011525761033.aspx

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...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is an addendum to the following article: Acitve Directory based Outlook Signature (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24950055.html) The script is fine, and works in normal client-server domains…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now