We help IT Professionals succeed at work.

Very Simple,: I need Logon Script to run Outlook upon client network logon

adamfh
adamfh asked
on
I am newbie at logon scripts.
Please walk me through this one.
I want Outlook 2007 to startup automatically on each client users computer upon logon to the domain.
how do I do this?  Is this set up per computer, or per user, or via the SBS 2003 centrally?
I have SBS 2003 and Vista Business on the clients.
Comment
Watch Question

CERTIFIED EXPERT

Commented:
You should be able to do this via a Group Policy.

There is a bit of faffing around for Vista clients - are you familiar with Group Policies and/or specific to Vista clients?
Mark DamenERP System Manager
CERTIFIED EXPERT
Commented:
Hi

The script I have copied below will work for version 2007 of office.  If you have a different version, then change the OFFICE12 bit of the path to be the relevant number.

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\progra~1\MICROS~2\Office12\outlook.exe"

This can be saved as a .vbs file on its own, or you could integrate this into an existing script that runs.  If you are running SBS 2003, the default script that all users run is called SBS_LOGIN_SCRIPT.bat or something like that.  In that situation, I would copy the two lines above into a notepad file called "startoutlook.vbs" and add this as a line in your SBS_LOGIN_SCRIPT.bat file.  That way, the SBS script runs and then calls this script at the end.  Make sure you place the script in the same folder as the SBS login script. (\\servername\sysvol\domain.local\scripts
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
Have a look at the following at your DC: GPO - User config - adm. templates - system - logon/logoff - run these programms at logon
This is meant for your purpose.
Commented:
Hi Adam,

You can do the same thing on an individual workstation with Run > mmc > File > Add snap-in > Add > Group Policy Object...etc. etc.

But, McKnife is dead on -- it is much simpler and will change all of the PCs from the server. I would definitely go that route.

Alternatively, from the registry:

HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -- then add the Key, "Run" and the a string value named "1.' Enter Outlook as the value.

Author

Commented:
McKnife,
your solution is the most comprehensive and also the easiest to implement.  Although it's not quite the question I asked, it gets to the point in the best and easiest manner.  So thanks!

Bert and Markusdamenus had helpful inputs as well, so I'll share the points.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.