#43669 - 2003-08-03 09:36 PM
Outlook 2000 Profile
|
Anonymous
Anonymous
Unregistered
|
I've been trying to the script that Kent Dyer posted to work for my school. The script appears to be working however it only creates the users profile, I have to go back and manually create the information service before the outlook client will connect to our exchange 5.5 server. I'm using the full version of the script. Does anyone have any suggestions as to how I can have the script go ahead and add the correct information service. Any suggestions will be greatly appreciated.
Thanks [ 03. August 2003, 21:38: Message edited by: cholbrook ]
|
|
Top
|
|
|
|
#43670 - 2003-08-05 07:22 AM
Re: Outlook 2000 Profile
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Charles,
Please find Exchange Configuration - KiX 3.63+ required updated as well as the code-rewrite version (my bad). The code re-write version is to be more in-line with the current versions of KiXtart.
Thanks,
Kent
|
|
Top
|
|
|
|
#43672 - 2003-08-07 01:41 AM
Re: Outlook 2000 Profile
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
R2D2,
I have been in e-mail contact with Mr. Holbrook and it was determined that he had a commented out line in his PRF file. Once the commented out line was remedied, the script worked fine.
Thanks.
Kent
|
|
Top
|
|
|
|
#43674 - 2003-08-07 01:44 PM
Re: Outlook 2000 Profile
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Sure, go ahead and post it..
Kent
|
|
Top
|
|
|
|
#43675 - 2003-08-07 05:15 PM
Re: Outlook 2000 Profile
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
The following lines in the PRF file were commented out -
code:
[Microsoft Exchange Server] ServiceName=MSEMS MDBGUID=5494A1C0297F101BA58708002B2A2517
MailboxName=PT_STRING8,0x6607 ; -- The name of the user's Exchange Server Mailbox
HomeServer=PT_STRING8,0x6608
Once he uncommented these, there were no further issues.
Kent
|
|
Top
|
|
|
|
#43676 - 2003-08-09 08:14 AM
Re: Outlook 2000 Profile
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
R2D2,
Do you have an alternative solution?
Thanks,
Kent
|
|
Top
|
|
|
|
#43678 - 2003-08-10 01:41 AM
Re: Outlook 2000 Profile
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Some comments..
Your script checks to see if Oulook is installed.. It generates the profiles, etc. With the code and the code re-write of the one that I have in the FAQ, detects which version (maybe a moot point with only one version installed on the client systems) and then generates the profile. I have also tried to go away from the GOTO/GOSUB methods and use detection to go to the section needed. In fact, with the code re-write there is more use of Functions. However, in the original version, the use of a CASE Statement is used.. IIRC, I only use NEWPROF.EXE as we make a number of modifications to the PRF before the profile is generated. If Outlook XP/2003 is detected, NEWPROF.EXE is not used.
Back to the point about one version of Outlook.. If you have only one version, I could trim my version down quite a bit. Thanks also go out to Anthony Harper, who, has helped with the PRF settings needed rather than "reg hacks" as I was doing.
Kent
|
|
Top
|
|
|
|
#43680 - 2003-08-10 06:06 PM
Re: Outlook 2000 Profile
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
I think we can clean up (simplify?) the script with the follwoing (no SHELL needed for COPY, and no GOTO/GOSUBS) -
code:
;SetConsole ('HIDE') ; ? '** Starting Automatic MS Outlook Profile Generation...' ? '** Checking if Outlook is installed...' IF Exist ('c:\program files\microsoft office\office10\outlook.exe') ? '** Checking if outlook userprofile exists...' IF 0=Exist('%userprofile%\application data\microsoft\outlook\'+@USERID+'.fav') $rc = WriteValue('HKCU\Software\Microsoft\Office\10.0\Outlook\setup','ImportPRF',@HOMESHR+'\outlook.prf','REG_SZ') ? '** Copying Default Outlook Profile...' SELECT CASE Ucase(@homeshr)='\\NT1\USERS' COPY @ldrive+'olp_rot_xp.prf' '%windir%\outlook.prf' CASE Ucase(@homeshr)='\\AMSSVR01\USERS' COPY @ldrive+'olp_ams_xp.prf' '%windir%\outlook.prf' ENDSELECT ? '** Creating new Outlook profile based on current user...' SHELL '%COMSPEC% /E:1024 /C ' + @ldrive + 'prfpatch.exe'
SELECT CASE Ucase(@homeshr)='\\NT1\USERS' COPY $source+'\outlook.prf' '\\NT1\users\'+@userid CASE Ucase(@homeshr)='\\AMSSVR01\USERS' COPY $source+'\outlook.prf' '\\AMSSVR01\users\'+@userid ENDSELECT $rc = WriteValue('HKCU\Software\Microsoft\Office\10.0\Outlook\setup','ImportPRF',@homeshr+'\outlook.prf','REG_SZ') ELSE ? '** Outlook profile found... skipping to end of script...' RETURN ENDIF ELSE ? '** Outlook is NOT installed,skipping to end of script...' RETURN ENDIF
I still think we can incorporate the changes that Anthony Harper was kind enough to provide will help too.. If you look at my code re-write, it does this "compartmentalized" or using functions to do this. Sure, it is more extensive or has more code, but covers the needs.
HTH,
Kent
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 837 anonymous users online.
|
|
|