|
|
|||||||
Hi there!! Im new to this forum but not new to kix . I have some problem with the exchange/outlook configuration script. I would like to know what each step do and how its suppossed to work Like I see it it the script copies files then removes them at once but later in the script it is supposed to use the files from $windir..... could someone please help me with this script. Im gonna use it in w2k ad with mixed clients (9x/w2kp/nt) /regards Matt |
||||||||
|
|
|||||||
yeh, not new to kix... who knows. I show you something simple: code:now, take a close look about what files are copied and deleted. also, to where and from where.IF 1 <> EXIST($windir+"\Outlook.PRF") just a little patience and it's there. if someone wonders what is this, the script is at: http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=2;t=003683#000000 [ 14. October 2002, 10:33: Message edited by: Lonkero ] |
||||||||
|
|
|||||||
Matt, First of all.. Welcome to the board! Second, it is good to see that there are people using my code.. If you are concerned with the script, you can do the "full-fledged" or the trimmed down version.. But, the thing is that you run the script like - code:Or, add a DEBUG ON in the script..kix32 outlook /d This information has also been updated in the FAQ Section and specifically, Exchange/Outlook Configuration. Now, back to your question.. > Files deleted and then used.. If we look at: code:Specifcally, the DEL commands..IF 1 <> EXIST($windir+"\Outlook.PRF") DEL $windir+"\FixPrf.EXE" >> Not Used DEL $systemdrive+"PROFGEN.EXE" >> We don't use this in the C:\ root anymore but from %windir% DEL $systemdrive+"NEWPROF.EXE" >> We don't use this in the C:\ root anymore but from %windir% I have also made some changes to this to look for not only the @userid profile, but the "MS Exchange Settings" profile too. The reason being, is that we have a number of people that have off-line e-mail and once you re-generate their inbox, you have to manually re-map the off-line folders. I will put this updated version up later on today.. HTH, Kent [ 14. October 2002, 14:17: Message edited by: kdyer ] |
||||||||
|
|
|||||||
Gr8 thx for the answer got but can anyone explain this, I got it to work in w2kp but in w9x i get a error messege when the profgen.exe executes "the file profgen.exe is linked to export netapi32.dll:NetApiBufferFree, that doesent exist" Any Ideas?? //Matt |
||||||||
|
|
|||||||
mmm... ie version? |
||||||||
|
|
|||||||
IE 5 //Matt |
||||||||
|
|
|||||||
Matt, What version of Outlook are we working with here? Thanks! Kent |
||||||||
|
|
|||||||
Outlook 2000, should it be 98? tried to install IE6 without success. //Matt |
||||||||
|
|
|||||||
Looks like we may have to look at the OUTLOOK.PRF file as NETAPI32.DLL is related to WMI and specifically - NetWkstaUserGetInfo http://eric.aling.tripod.com/PB/netapi.htm HTH, Kent |
||||||||
|
|
|||||||
It will most likely mean that Windows 95 is way too old to be supported by PROFGEN.EXE because of old DLL versions. And since Windows 9x is no longer supported by Microsoft, you should rather upgrade to one of the still supported Microsoft operating systems. |
||||||||
|
|
|||||||
I cant find "NetWkstaUserGetInfo" anywere. I wish we had all w2kp clients but we dont have the time to upgrade. 1500 users on 40 different locations and no WAN has been delivered yet, the new mail server must be up and running before 1 january 2003.... pretty stressed out |
||||||||
|
|
|||||||
Can you post your OUTLOOK.PRF? We maybe able to do this another way. Kent |
||||||||
|
|
|||||||
EvilHearted, You said "we dont have the time to upgrade". I read somewhere "If you don't have the time to do the job right in the first place, where will you find the time to do it over?" At my work, we have a simple rule. Since Wintendo is unsupported, no new applications will be rolled out to them. They either go on unsupprted, frozen in time or the get scrubbed and Win2k installed. It takes only about 20 minutes for the average build to be dropped to a machine. One cannot afford to get bogged down in supporting legacy OS. |
||||||||
|
|
|||||||
Heres my .prf file thanx for the help so far kdyer //Matt ; Outlook PRF file for Exchange Server users ; ------------------------------------------- ; Copyright (C), Microsoft Corporation, 1996. ; ; The following PRF file is included as an example of how to create a PRF file that will ; configure Outlook users with Exchange Server. Section 1, 2, and 3 may be modified. ; DO NOT MODIFY SECTION 4. It will most likely cause Exchange services to crash. ; Be very careful when editing to ensure property values match their property types. ; NOTE: The HomeServer setting for the Microsoft Exchange Server must be filled in ; before using this file. ; ; For information about how to disable Outlook Profile Setup and instead use the ; the Inbox Setup Wizard, see NONE.PRF in the Office Resource Kit. ; ************************************************************************ ; Section 1 - Profile defaults. [General] Custom=1 ; -- Required. Indicates that this is a customized PRF file. ProfileName=%username% DefaultProfile=Yes OverwriteProfile=Yes DefaultStore=Service2 ; ************************************************************************ ; Section 2 - Services in profile. [Service List] Service1=Microsoft Outlook Client Service2=Microsoft Exchange Server Service3=Outlook Address Book Service4=Personal Address Book Service5=Archived Messages ; ************************************************************************ ; Section 3 - Default values for each service. [Service1] EmptyWastebasket=TRUE SelectEntireWord=TRUE AfterMoveMessage=2 CloseOriginalMessage=FALSE GenReadReceipt=FALSE GenDeliveryReceipt=FALSE DefaultSensitivity=0 DefaultPriority=1 SaveSentMail=TRUE ; **** Customized Outlook Client properties **** CloseOriginalMsg=1 AllowCommaAsSeparator=1 MarkMyComments=0 AutoArchiveInterval=5 DefaultArchiveFile=H:\Outlook\%username%.pst [Service2] ConversionProhibited=TRUE MailboxName=%username% HomeServer=lab1 ; Required. ; -- The name of the Microsoft Exchange Server the user should ; connect to (ex: ALEX). 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] PathToPersonalAddressBook="H:\Outlook\%username%.pab" ViewOrder=1 [Service5] PathToPersonalFolders="H:\Outlook\%username%.pst" RememberPassword=TRUE EncryptionType=0x40000000 Password= ; ************************************************************************ ; Section 4 - Mapping for profile properties. DO NOT MODIFY. ; ************************************************************************ ; Microsoft Outlook Client definitions [Microsoft Outlook Client] SectionGUID=0a0d020000000000c000000000000046 EmptyWastebasket=PT_BOOLEAN,0x0115 ; -- A boolean value indicating whether or not to empty the ; wastebasket on exit. SelectEntireWord=PT_BOOLEAN,0x0118 ; -- A boolean value indicating whether or not to select entire ; words when selecting. AfterMoveMessage=PT_LONG,0x013B ; -- Indicates what to do after moving or deleting a message. ; Possible values are shown below: ; 0 - Open Next Message ; 1 - Return to Viewer ; 2 - Open Previous Message CloseOriginalMessage=PT_BOOLEAN,0x0132 ; -- A boolean value indicating whether or not to close the ; original message after replying. GenReadReceipt=PT_BOOLEAN,0x0141 ; -- A boolean value indicating whether or not to generate ; a read receipt on sent mail. GenDeliveryReceipt=PT_BOOLEAN,0x014C ; -- A boolean value indicating whether or not to generate ; a delivery receipt on sent mail. DefaultSensitivity=PT_LONG,0x014F ; -- The default sensitivity to send mail with. ; Possible values are shown below: ; 0 - Normal ; 1 - Personal ; 2 - Private ; 3 - Confidential DefaultPriority=PT_LONG,0x0140 ; -- The default priority to send mail with. ; Possible values are shown below: ; 0 - Low ; 1 - Normal ; 2 - High SaveSentMail=PT_BOOLEAN,0x0142 ; -- A boolean value indicating whether to save a copy of ; sent messages in the sent items folder. ; **** Custom entries added by rickva@microsoft.com **** CloseOriginalMsg=PT_BOOLEAN,0x0132 ; -- A boolean value indicating whether Outlook should close original ; message when replying or forwarding. MarkMyComments=PT_BOOLEAN,0x0319 ; -- A boolean value indicating whether Outlook should mark comments ; in a reply message with the users name. AllowCommaAsSeparator=PT_BOOLEAN,0x0350 ; -- A boolean value indicating whether Outlook should allow a comma ; to be used as an address separator. AutoArchiveInterval=PT_LONG,0x0323 ; -- The default is to auto archive every 14 days. ; Possible values are shown below: ; 1 - 60 DefaultArchiveFile=PT_STRING8,0x0324 ; -- The path and file name for the default auto archive file. ; ex: c:\home\rickva\outlook\archive.pst ; ************************************************************************ ; 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 ; -- Flags that control behavior when connecting to the Exchange ; Server. ; The following values are possible: ; VALUE RESULT ; 4 Normal ; 6 Ask whether to connect or work offline at startup. ; 12 Allow clients to be authenticated via the Internet ; 14 Combination of 6 and 12. 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 ; -- 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. ServerPath=PT_STRING8,0x6600 ; -- The users mailbox name. eg. in a NET/PO/USER address, ; this is USER. The maximum mailbox name is 10 characters. Mailbox=PT_STRING8,0x6601 ; -- The users mailbox password. The maximum password is 8 characters. Password=PT_STRING8,0x67f0 ; -- 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. RememberPassword=PT_BOOLEAN,0x6606 ; -- 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. ConnectionType=PT_LONG,0x6603 ; -- A boolean value indicating whether session logging ; is on or off. UseSessionLog=PT_BOOLEAN,0x6604 ; -- The path to the session log file. SessionLogPath=PT_STRING8,0x6605 ; -- A boolean value which indicates whether mail in the outbox ; is sent. EnableUpload=PT_BOOLEAN,0x6620 ; -- A boolean value which indicates whether mail in the server ; mailbag is downloaded. EnableDownload=PT_BOOLEAN,0x6621 ; -- 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 UploadMask=PT_LONG,0x6622 ; -- A boolean value which indicates whether a netbios notification ; is sent to a recipients transport when mail is delivered to ; their server inbox. NetBiosNotification=PT_BOOLEAN,0x6623 ; -- The polling interval in minutes when the transport ; checks for new mail. 1 <= polling interval <= 9999 NewMailPollInterval=PT_STRING8,0x6624 ; -- 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. DisplayGalOnly=PT_BOOLEAN,0x6625 ; -- 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. UseHeadersOnLAN=PT_BOOLEAN,0x6630 ; -- 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. UseLocalAdressBookOnLAN=PT_BOOLEAN,0x6631 ; -- 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. UseExternalToHelpDeliverOnLAN=PT_BOOLEAN,0x6632 ; -- 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. UseHeadersOnRAS=PT_BOOLEAN,0x6640 ; -- 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. UseLocalAdressBookOnRAS=PT_BOOLEAN,0x6641 ; -- 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. UseExternalToHelpDeliverOnRAS=PT_BOOLEAN,0x6639 ; -- A boolean value which indicates that a Dial-up Network connection should ; be established when the transport provider starts up. ConnectOnStartup=PT_BOOLEAN,0x6642 ; -- A boolean value which indicates that a Dial-up Network connection should ; be automatically terminated when headers are finished downloading. DisconnectAfterRetrieveHeaders=PT_BOOLEAN,0x6643 ; -- A boolean value which indicates that a Dial-up Network connection should ; be automatically terminated after mail has finished being sent ; received. DisconnectAfterRetrieveMail=PT_BOOLEAN,0x6644 ; -- A boolean value which indicates that a Dial-up Network connection should ; be automatically terminated when the provider is exited. DisconnectOnExit=PT_BOOLEAN,0x6645 ; -- The name of the Dial-up Network profile that the transport will use by ; default to attempt the connection. DefaultDialupConnectionName=PT_STRING8,0x6646 ; -- Number of times to attempt dial for connection. ; 1 <= retry attempts <= 9999 DialupRetryCount=PT_STRING8,0x6648 ; -- Delay between retry attempts in seconds. ; 30 <= retry delay <= 9999 DialupRetryDelay=PT_STRING8,0x6649 ; ************************************************************************ ; Personal Folders service definitions. [Archived Messages] ServiceName=MSPST MS ; -- Path to personal folders. PathToPersonalFolders=PT_STRING8,0x6700 ; -- A boolean value that determines if the personal folders password ; should be cached. RememberPassword=PT_BOOLEAN,0x6701 ; -- 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 EncryptionType=PT_LONG,0x6702 ; -- PST password. Password=PT_STRING8,0x6703 ; ************************************************************************ ; Personal Address Book service definitions. [Personal Address Book] ServiceName=MSPST AB ; -- Path to personal address book. PathToPersonalAddressBook=PT_STRING8,0x6600 ; -- Determines if PAB entries are first, last, or last, first. ; ; first last 0 ; last, first 1 ViewOrder=PT_LONG,0x6601 ; ************************************************************************ ; Outlook Address Book service definitions. [Outlook Address Book] ServiceName=CONTAB Ben=PT_STRING8,0x6700 ; -- Dummy property. Do not modify. |
||||||||
|
|
|||||||
at first I would remove the copyright... it might hang it |
||||||||
|
|
|||||||
Matt, My bad sorry.. On http://www.jsiinc.com Go to - JSI Tip 1786. Another way to set %UserName%, %ComputerName%, and %LogonServer% for W9x.. Download - PUTINENV.EXE.. From the Win9x CD-ROM, you can find WINSET.EXE.. Additonally, you can use - tip 0120. HTH, Kent |
||||||||
|
|
|||||||
I have used the information on JSI Tip 1786. Another way to set %UserName%, %ComputerName%, and %LogonServer% for W9x.. ´ but i still have the problem with profgen when i map a homedrive with %username% it works fine under w9x when i used the tip 1786 //Matt |
||||||||
|
|
|||||||
{Edit - Removed the Company Key} Matt, Give this a try... Note the use of FIXPRF.. code:HTH,;BREAK ON Kent [ 15. October 2002, 23:51: Message edited by: kdyer ] |
||||||||
|
|
|||||||
OK.. {Edit - Tested with Outlook 98 on Windows 95} {Second Edit - Tested with Outlook 2000 on W95} {Second Edit - Tested with Outlook XP on WXP} {Second Edit - Tested with Outlook 2000 on W2k} {Third Edit - We have Exchange 2000 and AD} Installed Windows 95 on a test system.. Changes for today are:
Kent [ 16. October 2002, 06:22: Message edited by: kdyer ] |
||||||||
|
|
|||||||
FYI.. Updated the following FAQ and specifically - Exchange/Outlook Configuration [ 16. October 2002, 06:20: Message edited by: kdyer ] |
||||||||
|
|
|||||||
eh? |
||||||||
|
|
|||||||
Jooel, Never mind your BBChecker going nuts.. I deleted the extra posts.. My keyboard buffer got a little full. Kent |
||||||||
|
|
|||||||
well... it actually wasn't checker but me. I've been manually hitting the F5 whole night. as been working on some wkix looping scripts, I have to really often issue "kill wkix32 /f" and that's reason I've been unable to use checker... anyway, you have good buffer when you get 4 replies on "one" hit... I quess, best one I've seen before that one was when MCA got 3. |
||||||||
|
|
|||||||
YEAH BABY YEAH!!!! That did the trick!!! You are my hero Kent!! You dont know how thankful I am for all your help. thanks again btw is it possible now days to add printers in w9x with kix? the reason I ask is for I havent used kix for about 1½ years and i wonder if there are new features in kix or just plain simple another solution. thanks again //Matt |
||||||||
|
|
|||||||
Matt, Have a look at this post - Add Printer on 9x clients! HTH, Kent |
||||||||
|
|
|||||||
Matt, So... Did the Printer script work? Just curious. Kent |
||||||||
|
|
|||||||
I have tried and tried to get this to work and can't do it. I have read every post about it and still can't get it to work. All it does is create a profile named %USERNAME%. This of course won't work. I am running Exchange 5.5 on Win 2k with Win98 cleints using Outlook 2000. Any ideas? I have tried to post my prf file but it tells me something about parenthesis in html code. Thanks for any help. Here is the top part of my prf file: ; ************************************************************************ ; Section 1 - Profile defaults. [General] Custom=1 ProfileName=%USERNAME% DefaultProfile=Yes OverwriteProfile=Yes DefaultStore=Service2 ; ************************************************************************ ; Section 2 - Services in profile. [Service List] Service1=Microsoft Outlook Client Service2=Microsoft Exchange Server Service3=Personal Folders ; ************************************************************************ ; Section 3 - Default values for each service. ;Settings for the Outlook Client [Service1] ;---General Settings in Client---- AfterMoveMessage=1 AutoNameCheck=True ConfirmOnDelete=True EmptyWastebasket=False SelectEntireWord=True UseSchdPlus=False NumberOfMonthsFB=2 FrequencyToPublishFB=0x384 ;----Outlook AutoArchive------ DoAutoArchive=False PromptforAutoArchive=False DeleteExpiredMessages=False ;------Sending Mail------------ AddSigToNewMessage=True AddSigToReplyMessage=False CloseOriginalMessage=False CommaAddressSeparator=True DefaultPriority=1 DefaultSensitivity=0 GenDeliveryReceipt=False GenReadReceipt=False ReplyToMessage=3 ForwardMessage=3 MarkMyCommentsWith=False SaveForwards=True SaveRepliesWithOriginal=True SaveSentMail=True ;------When Mail Arrives------- ChangePointerOnNewMail=True NotifyWithDialogOnNewMail=True PlaySoundWhenNewMail=True [Service2] ConversionProhibited=True HomeServer=Jackson-Exch MailboxName=%USERNAME% OfflineFolderPath=C:\Windows\Application Data\Microsoft\Outlook\Outlook.OST OSTEncryptionType=0x80000000 [Service3] EncryptionType=0x80000000 PathToPersonalFolders=C:\Windows\Application Data\Microsoft\Outlook\Personal.PST [ 25. February 2003, 22:06: Message edited by: Jeff Grantham ] |
||||||||
|
|
|||||||
heh, I remember that I managed also to go around kents code with just 3 lines of code |
||||||||
|
|
|||||||
Could someone please post the fixprf.exe and prfpatch.exe? I have searched all over the internet and can't find them Thanks for any help. |
||||||||
|
|
|||||||
Jeff, Stay tuned.. I am putting together a version where you don't need FIXPRF.EXE. I will post an update to the FAQ and e-mail you as well. Kent |
||||||||
|
|
|||||||
Thanks. That would help alot. It makes it a lot easier to not have to go setup email everytime a new person logs in to a machine. |
||||||||
|
|
|||||||
mm, only exe I needed was newprof.exe tested on all outlook-version but not xp. |
||||||||
|
|
|||||||
The FAQ - Exchange/Outlook Configuration has been updated to remove the need for FIXPRF.EXE. This has been an outstanding request for a while now. (My bad) Lonk - I understand what you are saying about the three-line script.. However when you have different versions of Outlook in the Enterprise you have to break it up. For example, Outlook XP is setup different than Outlook 2000. Sure, it maybe good for KiXGolf game, but for deployment of Outlook, do we need to that? Thanks, Kent |
||||||||
|
|
|||||||
Jeff, You've got mail! Kent |
||||||||
|
|
|||||||
nah, we don't need it... but. the speed difference and easiness in manageability are the keywords I run it for. gladly we are not xp house for not office nor wintosh. for all other versions that works and is quick. sure, I don't mind it being long, but if it can be short and simple, I go for the latter. |
||||||||
|
|
|||||||
kent, could you rename the topic title to outlook/exchange as exchange-client is dead product. |
||||||||
|
|
|||||||
kent, checking more into the filey... code:eh?$rc = writevalue($profilelocation, 'DefaultProfile', @userid, 'REG_SZ') you first create and then you check does it exist? |
||||||||
|
|
|||||||
Jooel, Thanks for the feedback/updates.. I have updated the FAQ to reflect the changes and simplification we chatted about last night. Thanks again, Kent |