Automatically configure Outlook with Exchange on First Logon




Few simple steps to configure Outlook (2000/2003/2007) with MS Exchange on first logon:
It’s really not so difficult to configure outlook on first logon, you just need aPRF(Microsoft Outlook profile file) file. To create PRF file you need to download Office 2003 Editions Resource Kit Tools from following location.
Download
And you need Office Source Setup files.
After install open Microsoft Office 2003 Custom Installation Wizard, and select office source, on step 4 select step 17 like following window.

Now Select New Profile, and set a name for the default profile.

On user name field use %username%, and add your exchange server details (for e.g. MBX001.technochat.in), enable cache mode if you want to.

On next screen export PRF file.

Save PRF file on any network location from where other can access (Recommended on netlogon folder).

Sample PRF File
PRF File (6.6 KiB, 26 hits)
Now add following lines on your logon script, it will automatically detect your MS Outlook (2000/2003/2007) installation path, then run and configure your outlook on user first logon. If destination systems don’t have Outlook installed, it will automatically skip configuration part.
?Download outlook.bat
123456
@echo offreg query "HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook" >nulif not "%errorlevel%" == "0" ( FOR /F "TOKENS=3*" %%i in ('reg query "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE" /v Path ^| FINDSTR "REG_SZ" ') do set outpath="%%i %%j"cd %outpath%START "" "OUTLOOK.EXE" /importprf "\\SERVER\SHARE\outlook.prf")


Comments