Hi Bobby,
I was getting mutiple backups of the Outlook profile in the registry at one point too. The cause was loading outlook as follows;
Outlook /importprf outlook.prf
with the outlook profile set to update rather than overwrite the existing profile. The solution below does away with the import prf in normal use.
In Zenworks, I have 2 application objects [Outlook] and [Outlook - Delete Profile] The latter is an application dependency of the former. The execution in order is;
[Delete Outlook Profile]
* Distribute Registry
Delete - [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles]
[Outlook]
* Pre Launch Script
call w:\pcupdate\office2010\zenworks\profile\import.bat
call w:\pcupdate\office2010\zenworks\signature\create.bat
(see below for contents)
* Distribution Registry
[HKCU\Software\Microsoft\Office\14.0\Common\General]
"ShowFirstRunOption=0x00000001"
(Stops Outlook asking user about updates)
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676\00000001]
"New Signature= (copy from your own registry)"
"Reply-Forward Signature= (copy from yoru own registry)
(These settings configure which signature file to use automatically)
* Run Options - Application
Outlook.exe
* Post launch Script
call w:\pcupdate\office2010\zenworks\profile\export.bat
----
Batch File Contents;
*EXPORT.BAT
@Echo off
cls
Echo Exporting Outlook Profile
regedit /e h:\outlook\profile.reg "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"
--
*IMPORT.BAT
@echo off
cls
echo Importing Current Outlook Profile
regedit /s h:\outlook\profile.reg
regedit /s w:\pcupdate\office2010\zenworks\profile\mandatory.reg
if exist "%appdata%\Microsoft\Internet Explorer\Quick Launch\Microsoft Outlook.lnk" del "%appdata%\Microsoft\Internet Explorer\Quick Launch\Microsoft Outlook.lnk"
REM * Note mandatory.reg overwrites the users profile with settings common to the compnay. Used where group policy options not available. Can also be included in *Distribution Registry
--
*CREATE.BAT - Creates Signature File
Echo off
cls
IG
w:
cd \pcupdate\office2010\zenworks\signature\
c:
cd "%userprofile%\Application Data\Microsoft\Signatures\"
if not exist Signature_files md Signature_files
h:
cd \
if not exist Outlook md Outlook
cd \Outlook
Rem ** Delete existing signature files in case user modified;
if exist c:"%userprofile%\Application Data\Microsoft\Signatures\*.htm" del c:"%userprofile%\Application Data\Microsoft\Signatures\*.htm" /q
if exist c:"%userprofile%\Application Data\Microsoft\Signatures\*.rtf" del c:"%userprofile%\Application Data\Microsoft\Signatures\*.rtf" /q
if exist c:"%userprofile%\Application Data\Microsoft\Signatures\*.txt" del c:"%userprofile%\Application Data\Microsoft\Signatures\*.txt" /q
rem * Inhibit signature if required
if exist inhibitsig goto ENDSIG
ECHO. > Full_Name
if NOT "%Full_Name%"=="" echo %Full_Name% > Full_Name
ECHO. > Title
if NOT "%Title%"=="" echo %Title% > Title
ECHO. > Tel
if NOT "%Tel%"=="" echo %Tel% > Tel
echo CompanyName Limited > CompanyName
copy w:start+w:bold_on+Full_Name+w:bold_off+w:break+Title+w:break+CompanyName+w:break+Tel+w:break+w:break +w:ComanyName.html signature.htm > nul
copy signature.htm "%userprofile%\Application Data\Microsoft\Signatures\"
xcopy wignature_files cignature_files /e/s /y
:ENDSIG
--
Hope this helps
Bookmarks