Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Any script that can configure the Outlook with the logged in name

Posted on 2007-10-09
17
Medium Priority
?
175 Views
Last Modified: 2010-04-16
Hi,

Any script that can configure the Outlook with the logged in name.And at the end prompt for a pst location.

Any this can be done with a script.
Office 2003
Win Xp
Win 2003

Regards
Sharath

0
Comment
Question by:bsharath
  • 9
  • 8
17 Comments
 
LVL 12

Expert Comment

by:chandru_sol
ID: 20041683
Hi Sharath,

Use this link to create the outlook profile

http://www.outlook-tips.net/howto/prf.htm

Script below can be use to create the profile only once
'Scripts starts here
Option Explicit
On Error Resume Next


' Dim Our Variables
Dim objShell, objOutlook
Dim sFRKey, sFRSearch, sOutlookVersion

' Create Outlook object and Shell object

set objOutlook = CreateObject("Outlook.Application")
set objShell = CreateObject("WScript.Shell")

' Determine Which version client is using before moving on

if objOutlook.Version >= "11.0" And objOutlook.version <= "11.1" Then
sOutlookVersion = "11.0"
End If

if objOutlook.Version >= "10.0" And objOutlook.version <= "10.1" Then
sOutlookVersion = "10.0"
End If

if objOutlook.Version >= "9.0" And objOutlook.version <= "9.1" Then
sOutlookVersion = "9.0"
End If

if objOutlook.Version >= "8.0" And objOutlook.version <= "8.1" Then
sOutlookVersion = "8.0"
End If

'Strings
sFRKey = "HKEY_CURRENT_USER\Software\Microsoft\Office\"
sOutlookVersion & "\Outlook\Setup\First-Run"
'Search for it
sFRSearch = objShell.RegRead(sFRKey)


' Does key exist?
If err <> 0 Then
'Wscript.Echo "PRF is being Imported"
objShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Office\"
sOutlookVersion & "\Outlook\Setup\ImportPRF", "\\DCserver1\NETLOGON
\Outlook\Outlook.prf", "REG_SZ"
objShell.RegDelete "HKEY_CURRENT_USER\Software\Microsoft\Office\"
sOutlookVersion & "\Outlook\Setup\First-Run"
objShell.RegDelete "HKEY_CURRENT_USER\Software\Microsoft\Office\"
sOutlookVersion & "\Outlook\Setup\FirstRun"
Else
'Wscript.Echo "PRF exists"
End if


' Clean up
set objShell = Nothing
set objOutlook = Nothing

Hope this helps.......
0
 
LVL 11

Author Comment

by:bsharath
ID: 20041766
Chandru is this a Vbs file and should i change anything  in the script..
0
 
LVL 12

Expert Comment

by:chandru_sol
ID: 20042340
You need to have a prf file in the shared location and then save the code as a vbs script
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 11

Author Comment

by:bsharath
ID: 20042592
Chandru i just went through the microsoft site regarding Prf. Can you help creating one and do you have any already made...
0
 
LVL 12

Expert Comment

by:chandru_sol
ID: 20043298
I think there is an example one which you can download and modify. Let me have a look and see what are the parameters required.
0
 
LVL 11

Author Comment

by:bsharath
ID: 20046193
Ok Chandru
0
 
LVL 12

Expert Comment

by:chandru_sol
ID: 20046517
Did you try this?
0
 
LVL 11

Author Comment

by:bsharath
ID: 20046656
I checked but no improvement.Can you help...
0
 
LVL 12

Expert Comment

by:chandru_sol
ID: 20046694
Can you let me know what you tried?
0
 
LVL 11

Author Comment

by:bsharath
ID: 20046714
Chandru i followed this page.

http://www.outlook-tips.net/howto/prf.htm

What i dont understand is
What can this help...
Create a file then?
All my settings will be stored how can i user this to setup a different profile.
0
 
LVL 11

Author Comment

by:bsharath
ID: 20046916
Chandru i used this
Custom Installation Wizard
And created the Mst file now how do i run it...
New Custom Setup File.MST
0
 
LVL 11

Author Comment

by:bsharath
ID: 20047155
Hi Got it.

I created a Mst file and when i use this

\\machinename\foldername\setup.exe TRANSFORMS="\\indiasophos\c$\New Custom Setup File.MST" /qb-

I am able to get the profile autoconfigured.
When i login to the machine i get outlook configured but how do i run just the mst file as Office is already installed in these machines and i just need to configure them.
What does the ablove script do?
0
 
LVL 11

Author Comment

by:bsharath
ID: 20047244
How can i use a UNC path

\\Machinename\foldename\setup.exe TRANSFORMS="Machinename\foldenam"\New Custom Setup File.MST" /qb-


I get an error.Cannot find the path.

Can we use a UNC path to fetch the MST file
0
 
LVL 12

Accepted Solution

by:
chandru_sol earned 2000 total points
ID: 20058324
Sharath,

Can you try the below?

When you install Outlook you should configure the outlook profile as part of
creating a transform file with the Custom Installation Wizard.  If you have
already deployed outlook then you can modify the installation using the
custom maintenance wizard.

Create a maintenance wizard file that configure outlook with the name of
your exchange server and %username% as the user name, then copy the
maintwiz.exe file to the startup scripts folder of a GPO and create a
startup script to apply the maintwiz file to the machine.


Once applied, new profiles will simply have to launch outlook and it will
connect to exchange automatically.  I generally create a CNAME for the
Exchange server called "mail" and configure outlook to point to this.  This
way if you migrate to a new exchange server you wont have to modify all your
desktops again.


The Custom Installation Wizard and the Custom Maintenance Wizard are both
part of the Office Resource Kit.

0
 
LVL 12

Expert Comment

by:chandru_sol
ID: 20058336
I would prefer the above method as we do in our office, if not please try the link below

http://www.windowsitpro.com/Articles/ArticleID/93351/93351.html?Ad=1
0
 
LVL 11

Author Comment

by:bsharath
ID: 20058388
Chandru thanks i shall look into this any update on the excel user creation
0
 
LVL 12

Expert Comment

by:chandru_sol
ID: 20058432
Still didn't start working on that. Hopefully tonight i will work on this as i have to setup exchange to test this
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question