Page 1 of 1 1
Topic Options
#184785 - 2008-01-23 08:44 AM Outlook script
graesdal Offline
Fresh Scripter

Registered: 2007-12-04
Posts: 25
hello i use this Outlook/Exchange Configuration script here

and i have changed :

exchgsvr='MAILSVR' ; Main Exchange Server Location

to

exchsvr='exch01'

and i have copied outlook.prf to myserver\Netlogon\Profgen\Outlook2000

is there anything else that need to be changed
the script runs with no errors but outlook is not configured


Edited by graesdal (2008-01-23 08:47 AM)

Top
#184791 - 2008-01-23 01:39 PM Re: Outlook script [Re: graesdal]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4403
Loc: New Jersey
It appears that the script was updated to remove dependencies on version-specific folders. The line
 Code:
    $serverloc=@LSERVER+'\Netlogon\Profgen' ; Outlook Executables files location

shows that the files should be placed in the Profgen folder, and not the Profgen\Outlook2000 folder. You can confirm this by searching the UDF for "Outlook2000", which isn't found.

It looks like simply moving your EXE and PRF files back one folder level will solve your problem.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#184806 - 2008-01-24 07:44 AM Re: Outlook script [Re: Glenn Barnas]
graesdal Offline
Fresh Scripter

Registered: 2007-12-04
Posts: 25
what exe files should be placed in the \netlogon\profgen folder

i have these files i the \netlogon\profgen folder

Outlook.prf
Profgen.exe
Newprof.exe
Profgen.ini


Edited by graesdal (2008-01-24 10:07 AM)

Top
#184811 - 2008-01-24 01:00 PM Re: Outlook script [Re: graesdal]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4403
Loc: New Jersey
Reading the docs/script, it appears that it depends on the version of Outlook you are customizing. If you have them all there in the folder, (which is where the UDF looks) you should be covered for all versions.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#184833 - 2008-01-25 09:41 AM Re: Outlook script [Re: Glenn Barnas]
graesdal Offline
Fresh Scripter

Registered: 2007-12-04
Posts: 25
im using office 2003 and 2007 but it still does not work it gives me an outlook profile with my username in outlook isnt configured

Edited by graesdal (2008-01-25 01:36 PM)

Top
#184834 - 2008-01-25 10:22 AM Re: Outlook script [Re: graesdal]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Configuring Outlook XP (2002), 2003 and 2007 is way easier then the older versions. You can just tell outlook to import a default PRF file. You can create several files for different departments, offices, cities, etc... if needed. Juts make sure you set the correct PRF file to be imported by outlook.
You can create these PRF file with the custom installation wizard that comes with Office 2003 in the resource kit or with it's counterpart for office 2007 (they changed the name a bit).

I have been using this way of configuring outlook for several years now and never had any problems with it. This way you don’t need profgen and/or newprof.

 Quote:

Delete the following registry key value : HKEY_CURRENT_USER\Software\Microsoft\Office\[office version goes here]\Outlook\Setup\First-Run.

In the HKEY_CURRENT_USER\Software\Microsoft\Office\[office version goes here]\Outlook\Setup subkey, set the value of ImportPRF to a string value that specifies the name and path of the PRF file. For example, set ImportPRF to \\server1\share\outlook.prf.


Office version:
Office XP (2002) = 10.0
Office 2003 = 11.0
Office 2007 = 12.0
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#184870 - 2008-01-27 04:16 PM Re: Outlook script [Re: Mart]
firewalker Offline
There is an I in TEAM

Registered: 2008-01-15
Posts: 2
Loc: Israel
Where did you get the Profgen.ini?? its not explained on that page?
Thanks!

Top
#184871 - 2008-01-27 06:04 PM Re: Outlook script [Re: firewalker]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
You do not need the profgen.ini. A default profile can be created with the office custom installation wizard (2003 and older) or the Office Customization Tool (2007).
See attached file for a 2003 prf file. All you need to do is edit the HomeServer=MAILSERVERNAME line. It's in there twice (line 41 and 47) replace MAILSERVERNAME with the name of your mail server. After you did this you can tell outlook the import this prf file at start up by editing the two registry keys I posted above. We copy the prf file to the users home folder (u:\ in our case) at every logon just to be sure they use the most recent profile file and they might have deleted it because they do not know what it is and why it is there.


Attachments
Outlook2003.zip (515 downloads)
Description:




Edited by Mart (2008-01-27 06:05 PM)
Edit Reason: Typo.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#184874 - 2008-01-28 11:34 AM Re: Outlook script [Re: Mart]
graesdal Offline
Fresh Scripter

Registered: 2007-12-04
Posts: 25
thanks mart now it works now all i need is to get the signature working
Top
#184876 - 2008-01-28 12:45 PM Re: Outlook script [Re: graesdal]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Have a look at the two threads below.

Advanced Scripting » Outlook Signature - Help Converting VB Code
Advanced Scripting » Formatting an outlook signature
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#185083 - 2008-02-05 03:47 PM Re: Outlook script [Re: Mart]
firewalker Offline
There is an I in TEAM

Registered: 2008-01-15
Posts: 2
Loc: Israel
My problem is that I have PC's runing both WINXP and WIN2K and have a mix of Office 2000/2002/2003.
I have yet to find a script that runs all with out any errors


Edited by firewalker (2008-02-05 05:04 PM)

Top
#185085 - 2008-02-05 04:20 PM Re: Outlook script [Re: firewalker]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Yeah a mix of outlook XP (2002) or up and 2000 can be a pain the the …… well you know where right?

I fixed this with a simple piece of script doing one thing for 2K and an other thing for 2K3.

 Code:
$olpath = ReadValue("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE", "Path")
$olversion = GetFileVersion($olpath + "outlook.exe", "ProductVersion")

;Region Create Outlook profile
;Set profile to import
Select
	Case Left($olversion, 2) = "9."
		;Outlook 2000
		Shell @LDRIVE + "\newprof.exe -p " + @LDRIVE + "\Outlook2000.prf"
	Case Left($olversion, 2) = "11"
		;Outlook 2003
		Copy @LDRIVE + "\outlook2003.prf" @HOMESHR + "\" + @USERID + "\outlook.prf"
		$rc = DelValue("HKCU\Software\Microsoft\Office\11.0\Outlook\Setup", "First-Run")
		$rc = WriteValue("HKCU\Software\Microsoft\Office\11.0\Outlook\Setup", "ImportPRF", @HOMESHR + "\" + @USERID + "\outlook.prf", "REG_SZ")
	Case Left($olversion, 2) = "12"
		;Outlook 2007
		Copy @LDRIVE + "\outlook2007.prf"
		$rc = DelValue("HKCU\Software\Microsoft\Office\12.0\Outlook\Setup", "First-Run")
		$rc = WriteValue("HKCU\Software\Microsoft\Office\12.0\Outlook\Setup", "ImportPRF", @HOMESHR + "\" + @USERID, "REG_SZ")
EndSelect
;Endregion
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

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

Generated in 0.247 seconds in which 0.166 seconds were spent on a total of 14 queries. Zlib compression enabled.

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