Page 1 of 1 1
Topic Options
#32235 - 2002-11-12 01:40 PM Outlook Profile Generation
willuk9999 Offline
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
#32236 - 2002-11-12 02:05 PM Re: Outlook Profile Generation
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
willuk9999,
In my outlook profile script, I do not use the fullname, I use the login name (@userid) and it automatically finds the full name.
This also helps with people who have the same full name and you need to differentiate between the two.
_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

Top
#32237 - 2002-11-12 02:14 PM Re: Outlook Profile Generation
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#32238 - 2002-11-12 02:50 PM Re: Outlook Profile Generation
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You might be able to use a registry scanner for this. Run the scanner for a baseline scan, make the necessary changes to the Outlook setup and run the scanner again. Then compare the new scan against the baseline and investigate the changed keys/values. There are products out there which do this automatically, e.g. Advanced Registry Tracer.
_________________________
There are two types of vessels, submarines and targets.

Top
#32239 - 2002-11-12 03:23 PM Re: Outlook Profile Generation
willuk9999 Offline
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 Offline
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 Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#32242 - 2002-11-13 02:39 PM Re: Outlook Profile Generation
willuk9999 Offline
Lurker

Registered: 2002-11-12
Posts: 4
Thanks, I will give it a try
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1183 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.062 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org