prf and multiple exchange mailboxes

G

Guest

So I need to create a .prf file that will generate a new profile if there's
not already one there. Setup 1 exchange mail box. Then be able to add more
mailboxes as needed.

I'm using php to generate the file dynamically with each e-mail address
entered and the mail server and all that stuff. it works fine for the first
run, but will not add another user if the mailbox name is changed. What can I
change to have it do that?



Here's the file I generate:




; **************************************************************
; Section 1 - Profile Defaults
; **************************************************************
[General]
Custom=1
ProfileName=EasyStreet Exchange
DefaultProfile=Yes
OverwriteProfile=Append
ModifyDefaultProfileIfPresent=FALSE
DefaultStore=ServiceEGS

; **************************************************************
; Section 2 - Services in Profile
; **************************************************************
[Service List]
Service1=Microsoft Exchange Server
ServiceEGS=Exchange Global Section
; Service2=Personal Folders
Service3=Outlook Address Book
Service5=Personal Address Book
;ServiceX=Microsoft Outlook Client
;***************************************************************
; Section 3 - List of internet accounts
;***************************************************************
[Internet Account List]

;***************************************************************
; Section 4 - Default values for each service.
;***************************************************************
[Service1] ; Microsoft Exchange Server.
OverwriteExistingService=No
UniqueService=No

[email protected]
HomeServer=BE057
OfflineAddressBookPath=%USERPROFILE%\local settings\application

data\microsoft\outlook\
OfflineFolderPath=%USERPROFILE%\local settings\application

data\microsoft\outlook\outlook.ost
AccountName=Microsoft Exchange Server

[ServiceEGS]
[email protected]
HomeServer=BE057

RPCoverHTTPflags=0x0000002F
RPCProxyServer=exchange.easystreet.com
RPCProxyPrincipalName=msstd:exchange.easystreet.com
RPCProxyAuthScheme=000000001
CachedExchangeConfigFlags=0x00000100

[Service2]
UniqueService=No
Name=Personal Folders
PathToPersonalFolders=%USERPROFILE%\local settings\application

data\microsoft\outlook\outlook.pst
EncryptionType=0x40000000

[Service3]
[Service4]


[Service5]
NameOfPAB="Personal Address Book"
Path="%USERPROFILE%\local settings\application
data\microsoft\outlook\mailbox.pab"
ShowNamesBy=0


;***************************************************************
; Section 5 - Values for each internet account.
;***************************************************************


;***************************************************************
; Section 6 - Mapping for profile properties
;***************************************************************
; These are the registry entry definitions for where values will
; be stored, along with their data types.
[Microsoft Exchange Server]
ServiceName=MSEMS
MDBGUID=5494A1C0297F101BA58708002B2A2517
MailboxName=PT_STRING8,0x6607
HomeServer=PT_STRING8,0x6608
OfflineAddressBookPath=PT_STRING8,0x660E
OfflineFolderPath=PT_STRING8,0x6610

[Exchange Global Section]
SectionGUID=13dbb0c8aa05101a9bb000aa002fc45a
MailboxName=PT_STRING8,0x6607
HomeServer=PT_STRING8,0x6608
RPCoverHTTPflags=PT_LONG,0x6623
RPCProxyServer=PT_UNICODE,0x6622
RPCProxyPrincipalName=PT_UNICODE,0x6625
RPCProxyAuthScheme=PT_LONG,0x6627
CachedExchangeConfigFlags=PT_LONG,0x6629

[Personal Folders]
ServiceName=MSPST MS
Name=PT_STRING8,0x3001
PathToPersonalFolders=PT_STRING8,0x6700
RememberPassword=PT_BOOLEAN,0x6701
EncryptionType=PT_LONG,0x6702
Password=PT_STRING8,0x6703

[Outlook Address Book]
ServiceName=CONTAB

[Microsoft Outlook Client]
SectionGUID=0a0d020000000000c000000000000046
FormDirectoryPage=PT_STRING8,0x0270
WebServicesLocation=PT_STRING8,0x0271
ComposeWithWebServices=PT_BOOLEAN,0x0272
PromptWhenUsingWebServices=PT_BOOLEAN,0x0273
OpenWithWebServices=PT_BOOLEAN,0x0274

[Personal Address Book]
ServiceName=MSPST AB
NameOfPAB=PT_STRING8,0x001e3001
Path=PT_STRING8,0x001e6600
ShowNamesBy=PT_LONG,0x00036601

; ************************************************************************
; Section 7 - Mapping for internet account properties. DO NOT MODIFY.
; ************************************************************************
 
S

Sue Mosher [MVP-Outlook]

You can't use a .prf file to add a mailbox to an existing profile. If you want a prf to change the existing profile to use a different mailbox, change ModifyDefaultProfileIfPresent=FALSE to TRUE.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Drew said:
So I need to create a .prf file that will generate a new profile if there's
not already one there. Setup 1 exchange mail box. Then be able to add more
mailboxes as needed.

I'm using php to generate the file dynamically with each e-mail address
entered and the mail server and all that stuff. it works fine for the first
run, but will not add another user if the mailbox name is changed. What can I
change to have it do that?



Here's the file I generate:




; **************************************************************
; Section 1 - Profile Defaults
; **************************************************************
[General]
Custom=1
ProfileName=EasyStreet Exchange
DefaultProfile=Yes
OverwriteProfile=Append
ModifyDefaultProfileIfPresent=FALSE
DefaultStore=ServiceEGS

; **************************************************************
; Section 2 - Services in Profile
; **************************************************************
[Service List]
Service1=Microsoft Exchange Server
ServiceEGS=Exchange Global Section
; Service2=Personal Folders
Service3=Outlook Address Book
Service5=Personal Address Book
;ServiceX=Microsoft Outlook Client
;***************************************************************
; Section 3 - List of internet accounts
;***************************************************************
[Internet Account List]

;***************************************************************
; Section 4 - Default values for each service.
;***************************************************************
[Service1] ; Microsoft Exchange Server.
OverwriteExistingService=No
UniqueService=No

[email protected]
HomeServer=BE057
OfflineAddressBookPath=%USERPROFILE%\local settings\application

data\microsoft\outlook\
OfflineFolderPath=%USERPROFILE%\local settings\application

data\microsoft\outlook\outlook.ost
AccountName=Microsoft Exchange Server

[ServiceEGS]
[email protected]
HomeServer=BE057

RPCoverHTTPflags=0x0000002F
RPCProxyServer=exchange.easystreet.com
RPCProxyPrincipalName=msstd:exchange.easystreet.com
RPCProxyAuthScheme=000000001
CachedExchangeConfigFlags=0x00000100

[Service2]
UniqueService=No
Name=Personal Folders
PathToPersonalFolders=%USERPROFILE%\local settings\application

data\microsoft\outlook\outlook.pst
EncryptionType=0x40000000

[Service3]
[Service4]


[Service5]
NameOfPAB="Personal Address Book"
Path="%USERPROFILE%\local settings\application
data\microsoft\outlook\mailbox.pab"
ShowNamesBy=0
 
G

Guest

Not the answer I wanted, but thanks.

What would I use if I actually need several exchange mailboxes configured in
1 profile? Keeping in mind that I need to specify the e-mail address and
exchange server dynamically. Is this even possible?
 
S

Sue Mosher [MVP-Outlook]

It's possible but not with any tools in the Office Resource Kit. Probably the easiest solution would be to use the redistributable version of Redemption (http://www.dimastr.com/redemption/ ) and its Profman.dll library. Microsoft also provides programming libraries for this task, but only for C++ and Delphi.

Also note that you can't mix and match Exchange accounts from multiple servers. You can only add more accounts from the same server.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Drew said:
Not the answer I wanted, but thanks.

What would I use if I actually need several exchange mailboxes configured in
1 profile? Keeping in mind that I need to specify the e-mail address and
exchange server dynamically. Is this even possible?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top