#136820 - 2005-03-31 01:58 AM
Outlook 2003 and Citrix
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Have a general question and hope maybe someone can come up with an answer to it. The Outlook configuration script works great and I have no problems with it. I am having an issue in Citrix, where I have Outlook 2003 installed and when I try to e-mail out of the application, it cannot find the profile. What this means is that you have to physically run Outlook and make the connection to Exchange and once completed all is fine. However, in the Citrix environment, I would prefer not to run Outlook to complete the configuration.
Thanks,
Kent
|
Top
|
|
|
|
#136821 - 2005-03-31 05:03 PM
Re: Outlook 2003 and Citrix
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
$ = delvalue("HKCU\Software\Microsoft\Office\11.0\Outlook\setup","First-Run") $ = Writevalue("HKCU\Software\Microsoft\Office\11.0\Outlook\setup","importPRF",$file, REG_SZ)
where $file is the *.prf
and then just COM outlook to open $Outlook = CreateObject("Outlook.Application") $NS = $Outlook.GetNamespace("MAPI") ; $Fldr = $NS.GetDefaultFolder(6) ; $Unread = $Fldr.UnReadItemCount $Outlook = 0
|
Top
|
|
|
|
#136822 - 2005-03-31 05:45 PM
Re: Outlook 2003 and Citrix
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
|
Top
|
|
|
|
#136823 - 2005-05-13 12:55 AM
Re: Outlook 2003 and Citrix
|
greg_lucia
Lurker
Registered: 2005-05-12
Posts: 3
|
I have a similiar issue. We're using scriptlogic to specify mail profile settings, but it doesn't seem to be working well with Outlook 2003. Do you just put this in a kix file and launch it as a pre-engine script?
Thanks!
|
Top
|
|
|
|
#136824 - 2005-05-13 05:55 PM
Re: Outlook 2003 and Citrix
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Greg,
When you say "pre-engine" are you talking about ScriptLogic?
Here is the latest version of the Outlook script and I have used it on our Citrix boxes with no problem: Code:
OUTLOOK ; -- OUTLOOK - ALL >> MAIN CONFIGURATION FOR MICROSOFT OUTLOOK TO EXCHANGE SERVERS ;Function OUTLOOK() ; ;Author Kent Dyer (leptonator@hotmail.com ; ;Contributors Lonkero ; Matt "EvilHearted" ; Rad ; Anthony Harper ; ;Action Configure Outlook ; ;Syntax OUTLOOK ; ;Version 1.17 ; ;Date 1-April-2001 ; ;Date Revised 11-April-2005 ; ;Parameters none ; ;Remarks This function is used to configure Outlook with Exchange Server, ; Change 'EXCHANGESERVER' to your server name ; ;Returns Nothing ; ;Dependencies Outlook.prf, MODPROF.EXE (for Outlook 9x/20000, profupdt.exe to integrate ;http://www.microsoft.com/office/ork/2000/download/Outlook.prf ;http://download.microsoft.com/download/f/6/e/f6e04362-83d7-4107-be59-91e0658fa198/outlook.prf ;http://www.microsoft.com/office/orkarchive/2000ddl.htm ;http://download.microsoft.com/download/b/c/3/bc3c8c90-550c-4d22-96d3-616298490c0c/modifyprofile.exe (contains MODPROF.EXE) ; ;KiXtart Ver 4.02 ; ;Example(s) OUTLOOK FUNCTION OUTLOOK() DIM $prfrem,$waste,$explorview,$editorpref,$prf,$serverloc, $exchgsvr,$prfloc,$prffile,$ppru,$exe,$ver,$idx,$keyname,$rc, $outlook,$ns,$unread,$fldr,$x,$regexp,$MSOdir
$prfrem='Yes' ; Remove All other Outlook profiles under current user $waste='TRUE'; Empty Outlooks Deleted Items Folder on Exit $explorview='Yes' ; Outlook Explorer View 'Yes' or Standard View 'No' $editorpref=30001 ; Editor Preference 10001=Plain Text, 20001=HTML, and 30001=Rich Text $prf='Outlook.prf' $prffile='%temp%\'+$prf $serverloc=@LSERVER+'\Netlogon\Profgen' ; Outlook Executables files location $exchgsvr='EXCHANGESERVER' ; Main Exchange Server Location IF @INWIN ;Windows NT/2k/XP/2003 $prfloc='HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles' ELSE ;Windows 9x $prfloc='HKCU\Software\Microsoft\Windows Messaging Subsystem\Profiles' ENDIF ; -- Current User Profile $ppru=$prfloc+'\'+@USERID
; -- Determine version of Outlook $exe=ReadValue('HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE','') $ver=SPLIT(GetFileVersion($exe),'.')[0]+'.0' $MSOdir=SUBSTR($exe,1,Len($exe)-11)
; -- This is used for when you have people come into the company from another Exchange Server into yours IF INGROUP('GROUPNAME') AND READVALUE($ppru+'\13dbb0c8aa05101a9bb000aa002fc45a','001e6602')<>$exchgsvr $rc=WriteValue($ppru+'\13dbb0c8aa05101a9bb000aa002fc45a','001e6602',$exchgsvr,'REG_SZ') $rc=WriteValue($ppru+'\13dbb0c8aa05101a9bb000aa002fc45a','001e6608',$exchgsvr,'REG_SZ') ENDIF
; -- Look for Outlook Profile IF ReadValue($prfloc,'DefaultProfile')<>@USERID AND ReadValue($prfloc,'DefaultProfile')<>'MS Exchange Settings' OR @ERROR COPY $serverloc+'\'+$prf $prffile $rc=WriteProfileString($prffile,'General','ProfileName',@USERID) $rc=WriteProfileString($prffile,'General','DefaultProfile','Yes') $rc=WriteProfileString($prffile,'General','OverwriteProfile','Yes') $rc=WriteProfileString($prffile,'General','BackupProfile','No') $rc=WriteProfileString($prffile,'Service1','AutoNameCheck','TRUE') $rc=WriteProfileString($prffile,'Service1','EmptyWastebasket',$waste) $rc=WriteProfileString($prffile,'Service1','CloseOriginalMessage','TRUE') $rc=WriteProfileString($prffile,'Service2','HomeServer',$exchgsvr) $rc=WriteProfileString($prffile,'Service2','MailboxName',@USERID)
IF $prfrem='YES' ; -- Clear any "rogue" profiles out $idx=0 $keyname=EnumKey($prfloc,$idx) WHILE @ERROR=0 IF $keyname<>@USERID $rc=DelTree($prfloc+'\'+$keyname) ENDIF $idx=$idx+1 $keyname=EnumKey($prfloc,$idx) LOOP ENDIF
SELECT CASE $ver='8.0' OR $ver='9.0' ;(e.g. 8.5.5104.0) ;SHELL '%COMSPEC% /C '+$scriptdir+'\Profgen.exe '+$scriptdir+'\Newprof.exe -p '+$prffile+' -X -R -L -T '+$profiledir+'> nul' SHELL '%COMSPEC% /C '+$serverloc+'\modprof.exe -P '+$prffile+' -x' $rc=WriteValue('HKCU\Software\Microsoft\Office\'+$ver+'\Outlook','Machine Name',@WKSTA,'REG_SZ') $rc=WriteValue('HKCU\Software\Microsoft\Office\'+$ver+'\Outlook','CheckInternetAccounts',1,'REG_DWORD') $rc=WriteValue('HKCU\Software\Microsoft\Office\'+$ver+'\Outlook','FirstRunDialog','False','REG_SZ') $rc=WriteValue('HKCU\Software\Microsoft\Office\'+$ver+'\Outlook\Setup','PrimaryClient',1,'REG_DWORD') $rc=WriteValue('HKLM\Software\Microsoft\Office\'+$ver+'\Outlook\Setup','MailSupport',1,'REG_DWORD') $rc=WriteValue('HKLM\Software\Microsoft\Office\'+$ver+'\Outlook\Setup','First-Run','df83b12adc9cd511b57c0002a57ce19c','REG_BINARY') IF $explorview='Yes' $rc=WriteValue($prfloc+@userid+'\0a0d020000000000c000000000000046','001e0360','','REG_SZ') $expview='010000002c0000000200000003000000ffffffffffffffffffffffffffffffff62000000270000003' $expview=$expview+'c030000ac02000001000000000000000100000000000000c00000006400000003000000' $rc=WriteValue('HKCU\Software\Microsoft\Office\'+$ver+'\Outlook\Office Explorer','Frame',$expview,'REG_BINARY') ENDIF CASE $ver='10.0' OR $ver='11.0' ;(e.g. 10.0.2627.1) $rc=DelValue('HKCU\Software\Microsoft\Office\'+$ver+'\Outlook\Setup','First-Run') $rc=WriteValue('HKCU\Software\Microsoft\Office\'+$ver+'\Outlook\Setup','ImportPRF',$prffile,'REG_SZ') IF $ver='10.0' $rc=WriteValue('HKCU\Software\Microsoft\Office\'+$ver+'\Outlook\IM','Enabled',0,'REG_DWORD') ENDIF ; -- This was added as we needed to generate Outlook Profiles in a Citrix Session - thanks Rad! $outlook=CreateObject('Outlook.Application') $ns=$outlook.getnamespace('MAPI') $fldr=$ns.getdefaultfolder(6) $unread=$fldr.unreaditemcount $outlook=0 ENDSELECT DEL $MSOdir+'welcome.msg' ENDIF ENDFUNCTION
Thanks,
Kent
|
Top
|
|
|
|
#136825 - 2005-05-14 12:20 AM
Re: Outlook 2003 and Citrix
|
greg_lucia
Lurker
Registered: 2005-05-12
Posts: 3
|
Yes, I was talking about the scriptlogic pre-engine. Thanks so much for the script. Hopefully, I'll be able to figure out how to make it work in our environment quickly. Thanks again!
|
Top
|
|
|
|
#136826 - 2005-05-14 03:05 PM
Re: Outlook 2003 and Citrix
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Please let me know if there is anything that I missed or if you have a question.
If memory serves, SL has a pretty extensive configuration setup for Outlook. Your Support Contract with them should cover this.
Kent
|
Top
|
|
|
|
#136827 - 2005-05-19 12:49 AM
Re: Outlook 2003 and Citrix
|
greg_lucia
Lurker
Registered: 2005-05-12
Posts: 3
|
It worked like a charm... After I pulled my head out and did the obvious stuff. Thanks a million!
|
Top
|
|
|
|
#136828 - 2005-05-19 01:04 AM
Re: Outlook 2003 and Citrix
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Did you make any mods to the script? If so, can you post the final result?
Kent
|
Top
|
|
|
|
#136829 - 2005-05-19 06:40 PM
Re: Outlook 2003 and Citrix
|
Huffinagle
Getting the hang of it
Registered: 2002-09-04
Posts: 75
Loc: McMinnville, OR, USA
|
Kent, to run the Outlook script on a seperate kixtart instance do I simply need to add another line to my initial batch file?
Example: Code:
@echo off REM Use of the syntax %0\..\ is discussed in Knowledge Base article Q121387. @echo on %0\..\4.21\kix32.exe %0\..\logon.kix %0\..\4.21\kix32.exe %0\..\outlook.kix
Thanks, Matthew
|
Top
|
|
|
|
#136830 - 2005-05-19 11:26 PM
Re: Outlook 2003 and Citrix
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Nah..
You would want to do it this way: Your BATCH File - Code:
@echo off REM Use of the syntax %0\..\ is discussed in Knowledge Base article Q121387. @echo on %0\..\4.21\kix32.exe %0\..\logon.kix
Then, in your logon.kix, you can do the following - Code:
CALL @SCRIPTDIR+'\outlook.kix'
HTH,
Kent
|
Top
|
|
|
|
#136833 - 2005-05-20 03:01 PM
Re: Outlook 2003 and Citrix
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Matthew,
Or, do you mind if I call you Matt?
Anyway, I am interested in what you find. I think the FAQ needs to be updated to be more like a "Cookbook" or Step-by-step in getting the Outlook/Exchange updates in place.
Thanks again,
Kent
|
Top
|
|
|
|
#136835 - 2005-05-29 01:59 PM
Re: Outlook 2003 and Citrix
|
pearsondan99
Lurker
Registered: 2005-05-29
Posts: 1
|
Kent,
I ve tried out your outlook script (and have also downloaded all the required outlook components modprof etc) but when I go to run it it runs but doesnt create the profile {terminal services - outlook 2000) Excuse my ignorance but I m new to Kix whats the best way to debug this script and find out were the issue lies, I m running kix32 4.23
Thanks in advance
Dan
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 478 anonymous users online.
|
|
|