Page 1 of 1 1
Topic Options
#8478 - 2001-05-04 04:47 PM Looking for a way to populate outlook settings
Anonymous
Unregistered


I'm looking for a way to automate properly setting outlook 98 profile settings for an exchange server.
Top
#8479 - 2001-05-04 05:47 PM Re: Looking for a way to populate outlook settings
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
You will need newprof.exe and a configured PRF file


code:

; ****************************** Configure Outlook ********************************
$MsgKey = "$HKCUSMWNTCV\Windows Messaging Subsystem\Profiles"
$MProfile = ReadValue($MsgKey, "DefaultProfile") ;Read the current default profile
IF $MProfile = "" and $os="WinNT" ;If there is not default profile, create the profile using the PRF
$ExFileLoc = "c:" ;Location to copy temp file to
$copysource = "$logon\newprof.prf" ;name of the template prf
$File = "$ExFileLoc\newprof.PRF" ;Custom profile filename
$exserver = "mailman" ;name of mailserver
DEL "$File" ;Deletes any existing PRF file
COPY "$copysource" "$exfileloc" ;Copies baseline PRF file to c:
$section = "General"
$ = WRITEPROFILESTRING ($FILE, $section, "Custom", "1")
$ = WRITEPROFILESTRING ($FILE, $section, "ProfileName", "@UserID")
$ = 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", "$exserver")
$ = 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..."
SHELL "$logon\newprof.exe -P $File -x" ;Creates the Messaging profile
DEL "$File" ;Delete temp file
ENDIF

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#8480 - 2001-05-04 06:09 PM Re: Looking for a way to populate outlook settings
Anonymous
Unregistered


Where do I find newprof.exe??
Top
#8481 - 2001-05-04 10:55 PM Re: Looking for a way to populate outlook settings
Ashpoint Offline
Starting to like KiXtart

Registered: 1999-08-27
Posts: 192
Loc: Sydney, NSW, Australia
Have a SEACH on this site for REDFOX.

This free utility from www.redfox.co.uk made it real easy for me to set up the roaming profiles for my clients.

PS I have no relationship to Redfox.

Regards,
Michael

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 2630 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.13 seconds in which 0.104 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