Page 1 of 1 1
Topic Options
#178002 - 2007-07-17 12:11 PM Outlook profile creation trouble
pvanwelt Offline
Fresh Scripter

Registered: 2006-10-11
Posts: 17
Loc: Zierikzee, the Netherlands
Hi

I am looking all over the internet for some time to look for scripts to auto create outlook profiles during logon.
I have found this can be done by newprof/modprof, and also found this thread on this great forum :thread

I have created an .prf file (outlook.prf) and i can import this with the command: newprof -S , then i manually select the profile file and it imports it.

But i can't get it automatically imported with newprof -P outlook.prf -X, that just doesn't do anything :@

Also the script in above thread doesn't do anything.

Can anybody help me out ?

I'm currently working with outlook 2000, and when this works i'm going up to outlook 2003, and at last 2007.

Tnx in advance!

Top
#178004 - 2007-07-17 01:37 PM Re: Outlook profile creation trouble [Re: pvanwelt]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
There are lots of examples to configure outlook around on this board.

This works.
I put the prf file on the users home drive (u: in our case) and tell outlook to import the prf from there. This works just fine. You should change the registry key a bit for outlook 2000, 2002(xp), 2003 and 2007. Outlook 2000 is 9.0, 2002(xp) is 10.0, 2003 is 11.0 and I guess 2007 is 12.0 (not sure cause I do not have 2007).
 Code:
$rc = DelValue("HKCU\Software\Microsoft\Office\11.0\Outlook\Setup", "First-Run")
$rc = WriteValue("HKCU\Software\Microsoft\Office\11.0\Outlook\Setup", "ImportPRF", "pathtoprf\outlook.prf", "REG_SZ")


Edited by Mart (2007-07-17 01:38 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#178008 - 2007-07-17 03:15 PM Re: Outlook profile creation trouble [Re: Mart]
pvanwelt Offline
Fresh Scripter

Registered: 2006-10-11
Posts: 17
Loc: Zierikzee, the Netherlands
Are you sure the registry value "importprf" does work on outlook 2000 ?
I have searched the internet and found an article on microsoft.com and use that registry value in outlook 2007.

But in my outlook 2000 doesn't happen anything (and the registry values are implemented and correct) ....

btw a little bit offtopic, office 2007 is indeed 12.0

Top
#178009 - 2007-07-17 03:30 PM Re: Outlook profile creation trouble [Re: pvanwelt]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
I’m not absolutely sure about 2000 but on 2002(xp) and up it works fine.

Reading the MS article below it seems that there are some changes in the way prf files are formatted and the way they are processed by outlook.
Starting with outlook 2002(xp) newprof started giving me error and stopped working. The import of the prf file works fine for any outlook newer then 2000. For 2000 profgen and/or newprof should work just fine. Can you post the code you use?

Customizing Profiles with an Outlook Profile File
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#178010 - 2007-07-17 03:43 PM Re: Outlook profile creation trouble [Re: Mart]
pvanwelt Offline
Fresh Scripter

Registered: 2006-10-11
Posts: 17
Loc: Zierikzee, the Netherlands
I'm using the PRF listed here.
This one is working fine in outlook 2000, however it does only work
when i use "newprof -S" and manually select it.

When i use newprof -p outlook.prf -X , nothing happens

 Quote:

; Sample PRF file for creating Outlook profiles in Corporate or Workgroup configuration
; -------------------------------------------------------------------------------------
; Copyright (C), Microsoft Corporation, 1997-1999.
;
; The following PRF file is included as an example of how to create a PRF file that will
; configure a profile with the following services: Microsoft Exchange Server, Outlook
; Address Book, Personal Folders, and Internet E-mail (POP3). Sections 1 through 5 may
; be modified; DO NOT MODIFY SECTIONS 6 and 7. It will most likely prevent the profile
; from being properly created Be very careful when editing to ensure property values
; match their property types.

; Note that sections 2 and 3 are similar. Section 2 determines the kind and number
; of MAPI services, while section 3 determines the number of accounts. Sections 4 and
; 5 are also similar. Section 4 determines specific settings for each MAPI service,
; while section 5 determines specific settings for Internet Accounts. Finally, sections
; 6 and 7 are also similar; they display the possible settings for MAPI services and
; Internet Accounts, respectively.


; ************************************************************************
; Section 1 - Profile defaults.
; ************************************************************************

[General]
Custom=1
; -- Required. Indicates that this is a customized PRF file.
ProfileName=Microsoft Outlook
DefaultProfile=Yes
OverwriteProfile=Yes
DefaultStore=Service2

; ************************************************************************
; Section 2 - Services in profile.
; ************************************************************************
; The list of MAPI services that will be added to the profile.

[Service List]
Service1=Microsoft Outlook Client
Service2=Microsoft Exchange Server
;Service3=Outlook Address Book
;Service4=Personal Folders
;Service5=Internet E-mail
; If you add an Internet E-mail service, you also have to add an Account in
; section 3.

; ************************************************************************
; Section 3 - List of internet accounts.
;*******************************************************************
; The list of accounts that will be created.

[Internet Account List]
Account1=I_Mail

; ************************************************************************
; Section 4 - Default values for each service.
; ************************************************************************

[Service1]
; No settings configured.

[Service2]
ConversionProhibited=TRUE
HomeServer=TestExchange
; Required.
; -- The name of the Microsoft Exchange Server the user should
; connect to. You can specify any Microsoft Exchange Server
; in your site, and the correct Home Server will be assigned
; when the user first logs on.

[Service3]
Ben=TRUE
; -- Dummy property. Do not delete or modify.

[Service4]
PathToPersonalFolders=c:\outlook.pst
; The directories in the path to the personal folders must already exist

[Service5]
AccountName=PopAccount
' The AccountName has to match the Account name in Section 5.
LongAccountName=Internet E-mail - PopAccount
; The LongAccountName always has to be "Internet E-mail -" + <space> + AccountName

; ************************************************************************
; Section 5 - Values for each internet account.
; *******************************************************************
; The settings for each account that will be created. The available
; account settings are listed in Section 3, below.

[Account1]
; This is an example of a POP3 account
AccountName=PopAccount
ConnectionType=1
POP3Server=MyPOPServer
SMTPDisplayName=Someone
SMTPEmailAddress=someone@microsoft.com
SMTPOrgName=Personal
SMTPServer=MySMTPServer

; ************************************************************************
; Section 6 - Mapping for profile properties. DO NOT MODIFY.
; ************************************************************************

; ************************************************************************
; Outlook settings stored in the profile
[Microsoft Outlook Client]
SectionGUID=0a0d020000000000c000000000000046

FormDirectoryPage=PT_STRING8,0x0270
; -- The URL of Exchange Web Services Form Directory page used to
; create Web forms.

WebServicesLocation=PT_STRING8,0x0271
; -- The URL of Exchange Web Services page used to display
; unknown forms.

ComposeWithWebServices=PT_BOOLEAN,0x0272
; -- Set to TRUE to use Exchange Web Services to compose forms.

PromptWhenUsingWebServices=PT_BOOLEAN,0x0273
; -- Set to TRUE to use Exchange Web Services to display unknown
; forms.

OpenWithWebServices=PT_BOOLEAN,0x0274
; -- Set to TRUE to prompt user before opening unknown forms when
; using Exchange Web Services.

; ************************************************************************
; Microsoft Exchange Server service definitions.
[Microsoft Exchange Server]
ServiceName=MSEMS
MDBGUID=5494A1C0297F101BA58708002B2A2517

MailboxName=PT_STRING8,0x6607
; -- The name of the user's Exchange Server Mailbox

HomeServer=PT_STRING8,0x6608
; -- The name of the Microsoft Exchange Server the user should
; connect to. You can specify any Microsoft Exchange Server
; in your site, and the correct Home Server will be assigned
; when the user first logs on.

OfflineFolderPath=PT_STRING8,0x6610
; -- The path to the Offline Store File that contains
; local replicas of the user's Mailbox and Favorites.
; If you do not specify a value, no Offline Store will
; be created. If you specify a path, an Offline Store
; will be created and the Inbox, Outbox, Deleted Items,
; and Sent Items folders will be replicated to it.

OfflineAddressBookPath=PT_STRING8,0x660E
; -- The path to the directory to store offline address
; book files in.

ExchangeConfigFlags=PT_LONG,0x6601
; -- Behavior when connecting to the Exchange Server.
; 32 - Auto detect online/offline connection state (default)
; 48 - Always connect online
; 50 - Prompt user for online or offline connection

ConversionProhibited=PT_BOOLEAN,0x3A03
; -- A boolean value indicating whether NEWPROF should
; attempt to resolve the Exchange mailbox name at run time.
; If set to TRUE, NEWPROF will copy the name to the profile
; without resolving it.
; If FALSE, the name will be resolved. Invalid server or
; mailbox name will not be copied to the profile.

; ************************************************************************
; Microsoft Mail service definitions.
[Microsoft Mail]
ServiceName=MSFS

ServerPath=PT_STRING8,0x6600
; -- The path to the users post office. Mapped network drives, UNC and NETWARE paths
; are acceptable. NETWARE paths of the type NWServer/share:dir\dir1 are converted to
; UNC paths of the type \\NWServer\share\dir\dir1.

Mailbox=PT_STRING8,0x6601
; -- The users mailbox name. eg. in a NET/PO/USER address,
; this is USER. The maximum mailbox name is 10 characters.

Password=PT_STRING8,0x67f0
; -- The users mailbox password. The maximum password is 8 characters.

RememberPassword=PT_BOOLEAN,0x6606
; -- A boolean value indicating whether the users password is
; to be remembered in the profile or not. This is useful because
; if the password is remembered the user can bypass the logon prompt
; if his server path, mailbox name and password are all supplied.

ConnectionType=PT_LONG,0x6603
; -- The connection type. This may be one of CFG_CONN_AUTO, CFG_CONN_LAN,
; CFG_CONN_REMOTE, CFG_CONN_OFFLINE as defined below.
;
; 0x0 -- LAN type connection. Used to connect to the post office using a
; UNC path or pre-existing mapped drive.
; 0x1 -- Dial up connection using Dial-up Networking.
; 0x2 -- Not connected.
; 0x3 -- Automatically detect whether the connection type is LAN or REMOTE.
; This connection type is only available on Win95.

UseSessionLog=PT_BOOLEAN,0x6604
; -- A boolean value indicating whether session logging
; is on or off.

SessionLogPath=PT_STRING8,0x6605
; -- The path to the session log file.

EnableUpload=PT_BOOLEAN,0x6620
; -- A boolean value which indicates whether mail in the outbox
; is sent.

EnableDownload=PT_BOOLEAN,0x6621
; -- A boolean value which indicates whether mail in the server
; mailbag is downloaded.

UploadMask=PT_LONG,0x6622
; -- A bit array which allows the user to indicate which addresses
; for which the transport is to attempt delivery. This is useful
; in order to allow a user to specify that a transport only handle
; delivery for a subset of the addresses it can really process.
; When multiple transports are installed and the user wants a
; different transport to handle some specific address types they
; can use this bit array to specify that the MSMAIL transport
; only handle a specific set of addresses.
;
; Possible values as defined below include:
;
; 0x00000001 -- Local Post Office and External Post Office address types
; 0x00000002 -- PROFS address types
; 0x00000004 -- SNADS address types
; 0x00000008 -- MCI address types
; 0x00000010 -- X.400 address types
; 0x00000040 -- FAX address types
; 0x00000080 -- MHS address types
; 0x00000100 -- SMTP address types
; 0x00000800 -- OfficeVision address types
; 0x00001000 -- MacMail address types
; 0x000019df -- All of the above address types

NetBiosNotification=PT_BOOLEAN,0x6623
; -- A boolean value which indicates whether a netbios notification
; is sent to a recipients transport when mail is delivered to
; their server inbox.

NewMailPollInterval=PT_STRING8,0x6624
; -- The polling interval in minutes when the transport
; checks for new mail. 1 <= polling interval <= 9999

DisplayGalOnly=PT_BOOLEAN,0x6625
; -- A boolean value which, if TRUE, only displays the Microsoft Mail Global Address
; list for name selection. The Postoffice list, external post office lists, and gateway
; address lists are not shown.

UseHeadersOnLAN=PT_BOOLEAN,0x6630
; -- A boolean value which indicates whether the user wants to enable
; headers while working on the LAN. Headers mode allows the user
; to download message headers and selectively choose which mail
; to download.

UseLocalAdressBookOnLAN=PT_BOOLEAN,0x6631
; -- A boolean value which indicates whether the user wants to use
; name resolution based on a local copy of the server address book
; rather than the server address book itself.

UseExternalToHelpDeliverOnLAN=PT_BOOLEAN,0x6632
; -- A boolean value which indicates whether EXTERNAL.EXE, a server process, should be used
; to deliver submitted mail messages. This is sometimes useful when mail is running
; on a slow LAN connection.

UseHeadersOnRAS=PT_BOOLEAN,0x6640
; -- A boolean value which indicates whether the user wants to enable
; headers while working over a slow speed link. Headers mode
; allows the user to download message headers and selectively
; choose which mail to download.

UseLocalAdressBookOnRAS=PT_BOOLEAN,0x6641
; -- A boolean value which indicates whether the user wants to use
; name resolution based on a local copy of the server address book
; rather than the server address book itself.

UseExternalToHelpDeliverOnRAS=PT_BOOLEAN,0x6639
; -- A boolean value which indicates whether EXTERNAL.EXE, a server process, should be used
; to deliver submitted mail messages. This speeds up message delivery when mail is
; running on a Dial-up network connection.

ConnectOnStartup=PT_BOOLEAN,0x6642
; -- A boolean value which indicates that a Dial-up Network connection should
; be established when the transport provider starts up.

DisconnectAfterRetrieveHeaders=PT_BOOLEAN,0x6643
; -- A boolean value which indicates that a Dial-up Network connection should
; be automatically terminated when headers are finished downloading.

DisconnectAfterRetrieveMail=PT_BOOLEAN,0x6644
; -- A boolean value which indicates that a Dial-up Network connection should
; be automatically terminated after mail has finished being sent
; received.

DisconnectOnExit=PT_BOOLEAN,0x6645
; -- A boolean value which indicates that a Dial-up Network connection should
; be automatically terminated when the provider is exited.

DefaultDialupConnectionName=PT_STRING8,0x6646
; -- The name of the Dial-up Network profile that the transport will use by
; default to attempt the connection.

DialupRetryCount=PT_STRING8,0x6648
; -- Number of times to attempt dial for connection.
; 1 <= retry attempts <= 9999

DialupRetryDelay=PT_STRING8,0x6649
; -- Delay between retry attempts in seconds.
; 30 <= retry delay <= 9999

; ************************************************************************
; Personal Folders service definitions.

[Personal Folders]
ServiceName=MSPST MS

PathToPersonalFolders=PT_STRING8,0x6700
; -- Path to personal folders.

RememberPassword=PT_BOOLEAN,0x6701
; -- A boolean value that determines if the personal folders password
; should be cached.

EncryptionType=PT_LONG,0x6702
; -- A value that designates the type of encryption that is used to
; compress the data in the PST:
;
; No Encryption 0x80000000
; Compressable Encryption 0x40000000
; Best Encryption 0x20000000

Password=PT_STRING8,0x6703
; -- PST password.

; ************************************************************************
; Outlook Address Book service definitions.

[Outlook Address Book]
ServiceName=CONTAB
Ben=PT_STRING8,0x6700
; -- Dummy property. Do not modify.

; ************************************************************************
; Microsoft LDAP Directory service definitions.
[Microsoft LDAP Directory]
ServiceName=EMABLT

LDAPServer=PT_STRING8,0x6600
; -- This is the IP address or host name of the machine containing
; the LDAP server.

LDAPServerPort=PT_STRING8,0x6601
; -- The port number that the LDAP server is listening on.

UserName=PT_STRING8,0x6602
; -- Enter the user's name. This value is not required if you allow
; anonymous binds.

SearchBase=PT_STRING8,0x6603
; -- The Search Base (e.g. o=microsoft, c=US).

SearchFilter=PT_STRING8,0x6604
; -- The Search Filter in RFC1777 format with %s allowed as a
; substitution token for the name to be searched for. For example,
; (|(cn=*%s*)(sn=*%s*)) can be used to perform a search on common name
; or surname.

MAPIAddressType=PT_STRING8,0x6605
; -- The address type to be used by MAPI in message submission. For
; example, SMTP.

EMailAttribute=PT_STRING8,0x6606
; -- The E-Mail Attribute (e.g. mail, mhsOrAddresses or
; rfc822Mailbox), which is mapped to the MAPI PR_EMAIL_ADDRESS property.

LDAPTimeLimit=PT_STRING8,0x6607
; -- LDAP Time Limit for searching (in seconds). The maximum length of
; time to search the directory. A value of 0 means that the search will
; not be limited by time. Note that this will not necessarily supersede
; any system-wide limits defined on the server.

LDAPSizeLimit=PT_STRING8,0x6608
; -- LDAP Size limit for searching (in number of 'hits'). The maximum
; number of matches to return. A value of 0 means that there is no
; limit to the number of matches. Note that this will not necessarily
; supersede any system-wide limits defined on the server.

LDAPTimeLimitLowBand=PT_STRING8,0x6609
; -- Same as LDAP Time Limit, except for low bandwidth links.

LDAPSizeLimitLowBand=PT_STRING8,0x660a
; -- Same as LDAP Size Limit, except for low bandwidth links.

LogFilePath=PT_STRING8,0x660b
; -- Log File (full pathname).

ErrorLogging=PT_STRING8,0x660c
; -- Error Logging Levels , ON or OFF.

DisplayNameSource=PT_STRING8,0x6611
; -- Attribute to be used within the Internet Directory entry for
; populating the user Display Name.

DisplayFailDialog=PT_STRING8,0x6612
; -- Attribute to determine if a dialog will be displayed when a search
; to the Internet Directory fails. The dialog will display additional
; information. Values can be either 1 (display) or 0 (do not display).

[Internet E-Mail]
; If you configure an Internet E-mail service, then you also need to add
; information in section 5.

ServiceName=IMAIL
; When creating an Internet E-Mail service, both AccountName and
; LongAccountName MUST BE specified!

AccountName=PT_STRING8,0x661f
; This should be exactly the same as the I_Mail AccountName
; property.

LongAccountName=PT_STRING8,0x3001
; This should be the "Internet E-mail - " + the AccountName
; property. For example, if AccountName="foo", then this
; should be "Internet E-mail - foo".

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

; Internet E-Mail service Settings/Definitions
; In a Corporate or Workgroup configuration, the only type of account that
; can be created is an I_MAIL (POP3) account. You can use settings from
; the [I_Mail] section below.
;

[I_Mail]
; *****************************
; *** Mail Account Settings ***
; *****************************
; Configurable settings for POP3 (Corporate and Intenet Only configs)
; and IMAP (Internet Only config only) mail accounts

AccountName=PT_STRING8,0x1235
; The name of the account that appears in the Account List.

ConnectionType=PT_DWORD,0x1239
; Values:
; 0 = Connect using local area network (LAN).
; 1 = Connect using Internet Explorer's or a 3rd party dialer.
; 2 = Connect using modem and the Dial-up Networking connection
; specified in the Connectoid property.

Connectoid=PT_STRING8,0x123A
; Specify the existing Dial-up Networking connection to use.

; -----------------------------
; --- POP3 Account Settings ---
; -----------------------------

POP3Server=PT_STRING8,0x13C4
; Specifies the name of the POP3 server used for incoming messages.

POP3UseSicily=PT_BOOLEAN,0x13C8
; Set to 1 if you want to use Secure Password Authentication to logon
; to the POP3 server.

POP3LogonName=PT_STRING8,0x13C5
; If POP3UseSicily is turned on, this sets the name used to logon
; to the POP3 server.

POP3Port=PT_DWORD,0x13C9
; Specfies the port number used to connect to the POP3 server.

POP3SSL=PT_BOOLEAN,0x13CA
; Set to 1 to use the SSL (Secure Sockets Layer) security protocal to
; connect to the POP3 server.

POP3TimeOut=PT_DWORD,0x13CB
; Specifies how long to wait for a response for the server before
; stopping to attempt to send or receive messages. Possible values:
; 30 = 30 seconds
; 60 = 1 minute
; 90 = 1 minute 30 seconds
; 120 = 2 minutes
; 150 = 2 minutes 30 seconds
; 180 = 3 minutes
; 210 = 3 minutes 30 seconds
; 240 = 4 minutes
; 270 = 4 minutes 30 seconds
; 300 = 5 minutes

POP3LeaveOnServer=PT_BOOLEAN,0x13CC
; Set to 1 to store a copy of all sent and received messages on the
; POP3 server.

POP3RemoveExpired=PT_BOOLEAN,0x13CE
; If POP3LeaveOnServer is turned on, set to 1 to delete messages on
; the server after a specific number of days (see also
; POP3ExpireDays).

POP3ExpireDays=PT_DWORD,0x13CF
; If POP3LeaveOnServer and POP3RemoveExpired are turned on, sets
; the number of days after which messages left on the server will
; be deleted.

POP3RemoveDeleted=PT_BOOLEAN,0x13CD
; This property is only supported on Outlook 98 (8.5)or higher! If
; you try to use it on Outlook 97 (8.0x) the account will not be
; created.
; If POP3LeaveOnServer is turned on, set to 1 to delete a message
; from the server when the message is deleted from the Deleted
; Items folder on the local machine.

; -----------------------------
; --- SMTP Account Settings ---
; -----------------------------

SMTPServer=PT_STRING8,0x1428
; Specifies the name of the SMTP server used for outcoming messages.

SMTPUseSicily=PT_DWORD,0x142C
; Values:
; 0 = No server authentication required.
; 1 = Use Secure Password Authentication, or set SMTP server logon
; name using SMTPLogonName.

SMTPLogonName=PT_STRING8,0x1429
; If SMTPUseSicily is set to 1, this sets the name used to logon to
; the SMTP server.

SMTPPort=PT_DWORD,0x142D
; Specfies the port number used to connect to the SMTP server.

SMTPSSL=PT_BOOLEAN,0x142E
; Set to 1 to use the SSL (Secure Sockets Layer) security protocal to
; connect to the SMTP server.

SMTPTimeOut=PT_DWORD,0x142F
; Specifies how long to wait for a response for the server before
; stopping to attempt to send or receive mail messages. Values are
; the same as POP3TimeOut.

SMTPDisplayName=PT_STRING8,0x1430
; Specifies the "friendly" name associated with the email address.

SMTPOrgName=PT_STRING8,0x1431
; Specifies the group or organization.

SMTPEmailAddress=PT_STRING8,0x1432
; Specifies the email address. Must be in the format name@company

SMTPReplyAddress=PT_STRING8,0x1433
; Specifies that replies to outgoing email should be sent to this
; email address.

SMTPSplitMessages=PT_BOOLEAN,0x1434
; This property is only supported on Outlook 98 (8.5) or higher! If
; you try to use it on Outlook 97 (8.0x) the account will not be
; created.
; Set to 1 to break up outgoing messages, so that each message is
; smaller than the file size indicated by SMTPSplitSize.

SMTPSplitSize=PT_DWORD,0x1435
; The maximum size, in KB, of a piece of a split message.

Top
#178011 - 2007-07-17 04:11 PM Re: Outlook profile creation trouble [Re: pvanwelt]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
I assume you have the prf file located in the windows folder? Otherwise the x option requires the p option that specifies where the prf file is located.

Newprof.exe Command-Line Options


Now that I'm thinking about it we had some problems with newprof on Win XP pro systems that are running Office 2K. Windows 2000 worked fine.
Our logon script (batch file) had the line below in it and that worked fine on Win2K and office 2K but not on WinXP and office 2K.
Hmmmmm... I wonder if this could be something XP related

 Code:
start \\Eris\netlogon\Newprof.exe -p \\Eris\netlogon\default.prf
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#178012 - 2007-07-17 04:29 PM Re: Outlook profile creation trouble [Re: Mart]
pvanwelt Offline
Fresh Scripter

Registered: 2006-10-11
Posts: 17
Loc: Zierikzee, the Netherlands
Hmm, i have also installed a testmachine with XP (SP2) and outlook 2003.
But there the first method you gave also doesn't work ....

Tomorrow i will install a win 2000 testmachine to see if that works better.

Do you know how you have solved this issue on the XP machines ?

Top
#178013 - 2007-07-17 04:42 PM Re: Outlook profile creation trouble [Re: pvanwelt]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
 Quote:

....
Do you know how you have solved this issue on the XP machines ?


Other then scrapping office 2K? We didn’t.

 Quote:

Hmm, i have also installed a testmachine with XP (SP2) and outlook 2003.
But there the first method you gave also doesn't work ....
....


Then you are missing something. It works great on 2002 and up.

A stupid question: Did you put the correct path to the prf and the correct prf filename in the script or did you just take what I posted?


Edited by Mart (2007-07-17 04:42 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#178014 - 2007-07-17 04:49 PM Re: Outlook profile creation trouble [Re: Mart]
pvanwelt Offline
Fresh Scripter

Registered: 2006-10-11
Posts: 17
Loc: Zierikzee, the Netherlands
I have tried the newprof command manually:
newprof -p outlook.prf (doesn't work on office 2000/2003)
newprof -p outlook.prf -x (doesn't work on office 2000/2003)
newprof -S -> manually select (does work).

I tried the registry settings in both 2000 and 2003, and it just won't work. He doesn't import de PRF (i used 9.0 for outlook 2000 and 11.0 for 2003).

I think i'm missing something on both situations, but on this moment the only thing i can get working is the newprof -S and manually selecting the prf (which means the prf is working allright for both outlook 2000 and 2003)

Top
#178040 - 2007-07-18 12:08 PM Re: Outlook profile creation trouble [Re: pvanwelt]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Hmmmm....
Did some tests with WinXP and Office 2K.
Running newprof like below works when running it after logon. During logon it does nothing. I'm not sure why this does not work during logon and does work after logon. My guess is that it is something XP related. I'll try to find some time to setup a workstation with Win2K and Office 2K and do some test on that.

 Code:
\\server\netlogon\Newprof.exe -p \\server\netlogon\default.prf


Edited by Mart (2007-07-18 12:09 PM)
Edit Reason: typo
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#178079 - 2007-07-19 02:48 PM Re: Outlook profile creation trouble [Re: Mart]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
 Quote:

....
I'll try to find some time to setup a workstation with Win2K and Office 2K and do some test on that.
....


Creating a profile with newprof on a Win2K machine and Office 2K works great. So it definitely looks like newprof has some issues with WinXP. Maybe MS has something about this in the knowledgebase or on other support pages.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#178081 - 2007-07-19 04:04 PM Re: Outlook profile creation trouble [Re: Mart]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
As a workaround one could create an transforms file (.mst) with the custom installation wizard that comes in the Office 2000 resource kit.
In one of the steps in the custom installation wizard you can put the name of the mailbox and the name of the mail server among other stuff like what services it should support. If put %username% a in as the username and the name of your mail server all is working great. If you have more then one mail server you could create separate mst files for these servers.

You can apply the MST file to setup.exe by typing
 Code:
setup.exe transforms=filename.mst


This way profiles are created without any questions when the user opens outlook for the first time.

Ok, this not the most desirable way but up until now I cannot find anything useful about newporf giving problems on WinXP.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#178108 - 2007-07-20 11:21 AM Re: Outlook profile creation trouble [Re: Mart]
pvanwelt Offline
Fresh Scripter

Registered: 2006-10-11
Posts: 17
Loc: Zierikzee, the Netherlands
As i said before my test environment now consists of a Win2k and a WinXP
machine.

Both have office 2000 installed.

Today something really strange happened.
I had a batch file :
 Quote:

start \\2003dc2\netlogon\Newprof.exe -p \\2003dc2\netlogon\outlook.prf


Which doesn't want to work on 2k and XP.
Today i tried again and it worked on the 2k machine !
After that tried it on XP and it does work there too !

Then i installed Office 2003 on the XP machine, and then newprof
crashes after running the batch file.

I thought a work-arround to import the prf via : "outlook.exe /importprf \\2003dc2\netlogon\outlook.prf" which gave me the start window of office 2003 , but doesn't import the prf.

Then i downloaded an excample from the big topic
link
Which gave the same problems, also a prf created with the 2003 custom installation wizard gave the same problems.

The only prf i can import is the following:

 Quote:

;Automatically generated PRF file from the Microsoft Office Customization and Installation Wizard

; **************************************************************
; Section 1 - Profile Defaults
; **************************************************************

[General]
Custom=1
ProfileName=My Outlook Profile
DefaultProfile=Yes
OverwriteProfile=Yes
ModifyDefaultProfileIfPresent=FALSE

; **************************************************************
; Section 2 - Services in Profile
; **************************************************************

[Service List]
;ServiceX=Microsoft Outlook Client
Service1=Outlook Address Book

;***************************************************************
; Section 3 - List of internet accounts
;***************************************************************

[Internet Account List]
Account1=I_Mail
Account2=IMAP_I_Mail
Account3=INET_HTTP

;***************************************************************
; Section 4 - Default values for each service.
;***************************************************************

;[ServiceX]


[Service1]

;FormDirectoryPage=
;-- The URL of Exchange Web Services Form Directory page used to create Web forms.
;WebServicesLocation=
;-- The URL of Exchange Web Services page used to display unknown forms.
;ComposeWithWebServices=
;-- Set to TRUE to use Exchange Web Services to compose forms.
;PromptWhenUsingWebServices=
;-- Set to TRUE to use Exchange Web Services to display unknown forms.
;OpenWithWebServices=
;-- Set to TRUE to prompt user before opening unknown forms when using Exchange Web Services.


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

[Account1]
UniqueService=No
AccountName=Outlook Tips POP3
POP3Server=mail.outlook-tips.net
SMTPServer=mail.outlook-tips.net
POP3UserName=outlookt
EmailAddress=tips@outlook-tips.net
POP3UseSPA=0
DisplayName=
ReplyEMailAddress=
SMTPUseAuth=1
SMTPAuthMethod=0
ConnectionType=0
LeaveOnServer=0x0
ConnectionOID=MyConnection
POP3Port=110
POP3UseSSL=0
ServerTimeOut=60
SMTPPort=25
SMTPUseSSL=0

[Account2]
UniqueService=No
AccountName=AOL-IMAP
IMAPServer=imap.aol.com
SMTPServer=smtp.aol.com
IMAPUserName=poremsky
EmailAddress=poremsky@aol.com
IMAPUseSPA=0
DisplayName=
ReplyEMailAddress=
SMTPUseAuth=1
SMTPAuthMethod=0
ConnectionType=0
RootFolder=
ConnectionOID=MyConnection
IMAPPort=143
IMAPUseSSL=0
ServerTimeOut=60
SMTPPort=587
SMTPUseSSL=0

[Account3]
UniqueService=No
HttpServer=http://services.msn.com/svcs/hotmail/httpmail.asp
UserName=poremsky@hotmail.com
Organization=
Reply=
Account=Poremsky-Hotmail
EmailAddress=poremsky@hotmail.com
FullName=Diane Poremsky
Connection Type=0
ConnectOID=

;***************************************************************
; Section 6 - Mapping for profile properties
;***************************************************************

[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

[Microsoft Mail]
ServiceName=MSFS
ServerPath=PT_STRING8,0x6600
Mailbox=PT_STRING8,0x6601
Password=PT_STRING8,0x67f0
RememberPassword=PT_BOOLEAN,0x6606
ConnectionType=PT_LONG,0x6603
UseSessionLog=PT_BOOLEAN,0x6604
SessionLogPath=PT_STRING8,0x6605
EnableUpload=PT_BOOLEAN,0x6620
EnableDownload=PT_BOOLEAN,0x6621
UploadMask=PT_LONG,0x6622
NetBiosNotification=PT_BOOLEAN,0x6623
NewMailPollInterval=PT_STRING8,0x6624
DisplayGalOnly=PT_BOOLEAN,0x6625
UseHeadersOnLAN=PT_BOOLEAN,0x6630
UseLocalAdressBookOnLAN=PT_BOOLEAN,0x6631
UseExternalToHelpDeliverOnLAN=PT_BOOLEAN,0x6632
UseHeadersOnRAS=PT_BOOLEAN,0x6640
UseLocalAdressBookOnRAS=PT_BOOLEAN,0x6641
UseExternalToHelpDeliverOnRAS=PT_BOOLEAN,0x6639
ConnectOnStartup=PT_BOOLEAN,0x6642
DisconnectAfterRetrieveHeaders=PT_BOOLEAN,0x6643
DisconnectAfterRetrieveMail=PT_BOOLEAN,0x6644
DisconnectOnExit=PT_BOOLEAN,0x6645
DefaultDialupConnectionName=PT_STRING8,0x6646
DialupRetryCount=PT_STRING8,0x6648
DialupRetryDelay=PT_STRING8,0x6649

[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

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

[Outlook Address Book]
ServiceName=CONTAB

[LDAP Directory]
ServiceName=EMABLT
ServerName=PT_STRING8,0x6600
UserName=PT_STRING8,0x6602
UseSSL=PT_BOOLEAN,0x6613
UseSPA=PT_BOOLEAN,0x6615
DisableVLV=PT_LONG,0x6616
DisplayName=PT_STRING8,0x3001
ConnectionPort=PT_STRING8,0x6601
SearchTimeout=PT_STRING8,0x6607
MaxEntriesReturned=PT_STRING8,0x6608
SearchBase=PT_STRING8,0x6603

[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
CachedExchangeMode=PT_LONG,0x041f
CachedExchangeSlowDetect=PT_BOOLEAN,0x0420

[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.
; ************************************************************************

[I_Mail]
AccountType=POP3
;--- POP3 Account Settings ---
AccountName=PT_UNICODE,0x0002
DisplayName=PT_UNICODE,0x000B
EmailAddress=PT_UNICODE,0x000C
;--- POP3 Account Settings ---
POP3Server=PT_UNICODE,0x0100
POP3UserName=PT_UNICODE,0x0101
POP3UseSPA=PT_LONG,0x0108
Organization=PT_UNICODE,0x0107
ReplyEmailAddress=PT_UNICODE,0x0103
POP3Port=PT_LONG,0x0104
POP3UseSSL=PT_LONG,0x0105
; --- SMTP Account Settings ---
SMTPServer=PT_UNICODE,0x0200
SMTPUseAuth=PT_LONG,0x0203
SMTPAuthMethod=PT_LONG,0x0208
SMTPUserName=PT_UNICODE,0x0204
SMTPUseSPA=PT_LONG,0x0207
ConnectionType=PT_LONG,0x000F
ConnectionOID=PT_UNICODE,0x0010
SMTPPort=PT_LONG,0x0201
SMTPUseSSL=PT_LONG,0x0202
ServerTimeOut=PT_LONG,0x0209
LeaveOnServer=PT_LONG,0x1000

[IMAP_I_Mail]
AccountType=IMAP
;--- IMAP Account Settings ---
AccountName=PT_UNICODE,0x0002
DisplayName=PT_UNICODE,0x000B
EmailAddress=PT_UNICODE,0x000C
;--- IMAP Account Settings ---
IMAPServer=PT_UNICODE,0x0100
IMAPUserName=PT_UNICODE,0x0101
IMAPUseSPA=PT_LONG,0x0108
Organization=PT_UNICODE,0x0107
ReplyEmailAddress=PT_UNICODE,0x0103
IMAPPort=PT_LONG,0x0104
IMAPUseSSL=PT_LONG,0x0105
; --- SMTP Account Settings ---
SMTPServer=PT_UNICODE,0x0200
SMTPUseAuth=PT_LONG,0x0203
SMTPAuthMethod=PT_LONG,0x0208
SMTPUserName=PT_UNICODE,0x0204
SMTPUseSPA=PT_LONG,0x0207
ConnectionType=PT_LONG,0x000F
ConnectionOID=PT_UNICODE,0x0010
SMTPPort=PT_LONG,0x0201
SMTPUseSSL=PT_LONG,0x0202
ServerTimeOut=PT_LONG,0x0209
CheckNewImap=PT_LONG,0x1100
RootFolder=PT_UNICODE,0x1101

[INET_HTTP]
AccountType=HOTMAIL
Account=PT_UNICODE,0x0002
HttpServer=PT_UNICODE,0x0100
UserName=PT_UNICODE,0x0101
Organization=PT_UNICODE,0x0107
UseSPA=PT_LONG,0x0108
TimeOut=PT_LONG,0x0209
Reply=PT_UNICODE,0x0103
EmailAddress=PT_UNICODE,0x000C
FullName=PT_UNICODE,0x000B
Connection Type=PT_LONG,0x000F
ConnectOID=PT_UNICODE,0x0010


I don't know why this prf does work, but it does.
Only problem there isn't an exchange server in this prf.

So i guess the problem with importing in office 2003 is an prf issue ??

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

Generated in 0.067 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

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