#32235 - 2002-11-12 01:40 PM
Outlook Profile Generation
|
willuk9999
Lurker
Registered: 2002-11-12
Posts: 4
|
Hi All,
I have a script for finalizing outlook for users, however I have to manually change the Enter full name each time that outlook is started for the first time, when finalizing the users nt profile..
Is there a regestry edit that will can be definied to use the @fullname macro? Also I have tried to force Outlook to use the folder list instead of the Outlook Bar, but this only works if the user is logged in twice.
Here is the script:
;Outlook 2000/xp setup $VerKey = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE" $ExeOutl = ReadValue($VerKey,"") $VerOutl = GetFileVersion("$ExeOutl") $VerChk = SubStr ($VerOutl, 1, 1) $ProfKey = "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles" $DefProf = ReadValue($ProfKey, "DefaultProfile") ;Current default profile If $DefProf = "" ;If there is no default profile, create new profile $FileLoc = "%windir%" ;Location to copy temp file to $Prof= @ldrive+"mail\outlook.prf" ;name of the template prf $File = "$FileLoc\outlook.PRF" ;Custom profile filename $ExSrv = "scldentex" ;name of mailserver Del "$File" ;Deletes any existing PRF file Copy "$Prof" "$FileLoc" ;Copies default PRF file to PC $section = "General" $ = WriteProfileString ($FILE, $section, "Custom", "1") $ = WriteProfileString ($FILE, $section, "ProfileName", "@FullName") $ = WriteProfileString ($FILE, $section, "DefaultProfile", "Yes") $ = WriteProfileString ($FILE, $section, "OverwriteProfile", "No") $ = WriteProfileString ($FILE, $section, "DefaultStore", "Service2") $section = "Service List" ;$ = WriteProfileString ($FILE, $section, "Service1", "Microsoft Outlook Client") $ = WriteProfileString ($FILE, $section, "Service2", "Microsoft Exchange Server") $ = WriteProfileString ($FILE, $section, "Service3", "Outlook Address Book") $section = "Service2" $ = WriteProfileString ($FILE, $section, "HomeServer", "$ExSrv") $ = WriteProfileString ($FILE, $section, "MailBoxName", "@userid") $ = WriteProfileString ($FILE, $section, "OfflineAddressBookPath", "%userprofile%\Local Settings\Application Data\Microsoft\Outlook") $section = "Service3" $ = WriteProfileString ($FILE, $section, "Ben", "True") $section = "Service4" $ = WriteProfileString ($FILE, $section, "Ben", "True") ? ? "Creating new outlook profile for @FullName" ;Creates the Messaging profile for Outlook 2000 If $Verchk = "9" Shell @ldrive+"mail\modprof.exe -P $File -x" EndIf Del "$File" ;Delete temp file EndIf
$expview = "010000002c0000000200000003000000ffffffffffffffffffffffffffffffff62000000270000003" $expview = $expview + "c030000ac02000001000000000000000100000000000000c00000006400000003000000" $rc = WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Office Explorer","Frame",$expview,"REG_BINARY") WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook","FirstRunDialog","False","REG_SZ")
Thanks
|
|
Top
|
|
|
|
#32237 - 2002-11-12 02:14 PM
Re: Outlook Profile Generation
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Willuk,
Welcome to the board!
If I read this right.. You are able to generate Outlook Profiles fine..
However, when you launch Outlook the first time, you would like to have the User's Full Name and Initials be filled in automatically. This way, you don't see that screen.
Some testing will need to be done..
However, do not hold your breath as there are a lot of settings like this that are generated under a random seed.
Regards,
Kent
|
|
Top
|
|
|
|
#32239 - 2002-11-12 03:23 PM
Re: Outlook Profile Generation
|
willuk9999
Lurker
Registered: 2002-11-12
Posts: 4
|
Thanks for your prompt replies guys!
running a scanner might be a little tricky as, we have some fairly extreme policies across the network... but I will give it a try
I have up to now used the sendkeys function to run outlook and wait for 2 mins, then type the name in, but its a little messy, and prone to going wrong, especially if the timings are missed by a slow harddrive..
My ultimate aim for the script is to be able to have user login without any prompts/no roaming profile - We have 500 or more with profiles, that take up most of our storage arrays.
|
|
Top
|
|
|
|
#32240 - 2002-11-12 05:27 PM
Re: Outlook Profile Generation
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
Maybe I'm missing something here, but using @userid instead of @fullname and adding:
ConversionProhibited=False
won't fix the initial issue?
Brian
|
|
Top
|
|
|
|
#32241 - 2002-11-12 10:58 PM
Re: Outlook Profile Generation
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
willuk,
You can try the following - This is from Outlook XP, 2000 should have similarities (the way I tested this was to remove my profile and add it back in):
(broke the HKEY.. line to two lines for readability) quote:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\ Windows Messaging Subsystem\Profiles\KDyer\13dbb0c8aa05101a9bb000aa002fc45a] "001e6750"="KDyer" "001e6607"="KDyer" "001e3001"="Kent Dyer"
HTH,
Kent
|
|
Top
|
|
|
|
#32242 - 2002-11-13 02:39 PM
Re: Outlook Profile Generation
|
willuk9999
Lurker
Registered: 2002-11-12
Posts: 4
|
Thanks, I will give it a try
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 400 anonymous users online.
|
|
|