Try our new Certificate Revocation List Check Tool
CRLcheck.exe is a tool developed to verify digital signatures of executable files. It collects files from known paths on your client, checks their signature, and checks Certificate Revocation Lists (CRL) and OCSP download. This helps avoid delays in launching files.
Category published:  Exchange 2007 Exchange 2010 Outlook Scripting   Click on the Category button to get more articles regarding that product.

Outlook 2003 Autoconfig mit Exchange 2007/2010 und Outlook.prf file

Posted by admin on 07.04.2011

German Version of Office and WIndows only (You may have to adapt Paths for english)

On the client

1 Download ORC Microsoft Office Custom Wizard Toolkit

2 Start Office Sutoim Wizard

3 Mention PRO11.MSI from Office 2003

4 Mention new filename like test.MST (You will not need later)

5 Skip to STEP 14/15 (Right corner you can select)

6 Enter/Choose the Exchange Server, maybe “Cached Mode” leave the Rest

7 Export the FILE to an OUTLOOK.PRF

 

On the Server

8 Copy the Outlook.prf to %Logonserver\netlogon\files

9 Copy the script velow to  %Logonserver\netlogon\profile.cmd

10 Make a Comma seperated Textfile with the Users you don’t want to check and copy it to %Logonserver\netlogon\files\keinoutlook.txt

 

 Start/Include the profile.cmd at the end of your regular Logon Script to AUTO Config a Outlook 2003 Profile with the Windows NT username

which may be the (In most case) as the Exchange Alias.

 

profile.cmd

:: Outlook 2003 Autoconfig mit PRF File

:: 05.01.2011, V1.0, M. Butsch, Butsch Informatik, Switzerland www.butsch.ch

 

:: ———————————————————————————————————–

  

:: Citrix TS und andere Server auslassen ——————————————————————————–

if “%osver%”==”TS” goto ende

if “%osver%”==”W7” goto ende

if Exist “c:\Programme\Citrix\System32\app.exe” goto ende

if Exist “%programfiles%\Citrix\System32\app.exe” goto ende

if Exist C:\WINNT\system32\adminpak.msi goto ende

if Exist c:\windows\system\adminpak.msi goto ende

if Exist C:\WINDOWS\SYSVOL goto ende

if Exist “%SystemRoot%\system32\usrmgr.exe” goto ende

:: Citrix TS und andere Server auslassen ——————————————————————————–

  

:: Alle Server  auslassen ———————————————————————————-

reg.exe query “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName | find /I “Server 2003” > nul

if %errorlevel%==0 goto ende

reg.exe query “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName | find /I “Server 2008” > nul

if %errorlevel%==0 goto ende

reg.exe query “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName | find /I “Server 2000” > nul

if %errorlevel%==0 goto ende

:: Alle Server  auslassen ———————————————————————————-

 

:: Einzelne Clients und Server  auslassen ——————————————————————————-

echo %ComputerName% | find /I “srvr” > nul

if %errorlevel%==0 goto ende

echo %ComputerName% | find /I “SRVR” > nul

if %errorlevel%==0 goto ende

:: Einzelne Clients und Server auslassen ——————————————————————————-

   

:: Einzelne User Konten gemäss Liste auslassen (Administrator)

:. Sicher gehen, dass nicht bei jedem client an welchem sich ein Admin anmeldet ein Prodile erstellt wird

:: username,username (Comma Seperated) in file keinoutlook.txt

FOR /F “usebackq delims==,” %%a IN (%logonserver%\netlogon\files\keinoutlook.txt) DO if /i ‘%%a’==’%username%’ goto ende

    

:: Kontrolle of Files von Outlook profiles vorhanden falls ja nichts machen

If Exist “%USERPROFILE%\Anwendungsdaten\Microsoft\Outlook” goto ende

if exist “%appdata%\Microsoft\Outlook\Default Outlook Profile.xml” goto ende

if exist “%appdata%\Microsoft\Outlook\Default Outlook Profile.srs” goto ende

 

 :: Kontrolle ob ueberhaupt Office 2003 installiert ist

if Exist “c:\programme\Microsoft Office\office11\outlook.exe” goto outlook

if Exist %ProgramFiles%\Microsoft Office\office11\outlook.exe” goto outlook

goto ende

 

cls

ECHO —————————————

ECHO Es wurde keine Outlook Profile gefunden

ECHO Starte Outlook fuer den User %username%

ECHO —————————————

:outlook

:: Mache Auto Konfig von Profile fuer Outlook 2003 und Exchange 2007 von PRF File ab Netlogon Share

“%ProgramFiles%\Microsoft Office\office11\outlook.exe” /importprf %logonserver%\netlogon\files\outlook.prf

 :ende

 

 

 

Here is another version with SAMPLE outlook.PRF File:

http://irl33t.com/blog/2010/03/batch-script-configure-outlook-bat


 Category published:  Exchange 2007 Exchange 2010 Outlook Scripting   Click on the Category button to get more articles regarding that product.