Solved

Logon script to load MS Outlook at startup

Posted on 2013-01-28
5
818 Views
Last Modified: 2013-01-29
Hi - I wonder if anyone would have an example of a logon script which will load MS Outlook on client machines at startup/logon.

Thanks!
0
Comment
Question by:paulmac110
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 6

Expert Comment

by:mo_patel
ID: 38826230
drap and drop outlook into the startup folder

or in logon script

start "" "%ProgramFiles%\Microsoft Office\Office12\outlook.exe"
0
 
LVL 5

Expert Comment

by:Coffinated
ID: 38826272
You can create a login script using environmental values
http://www.binbert.com/blog/2010/09/default-environment-variable-values-of-windows-7-xp/
for example %windir%\system32\calc.exe will launch c:\windows\system32\calc.exe

All you need to do it to identify the installation folder and create it using windows environmental variables.

Outlook 2010 on Win7 64bit is located in "c:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE" which would be
%PROGRAMFILES%\\Microsoft Office\Office14\OUTLOOK.EXE
0
 
LVL 1

Author Comment

by:paulmac110
ID: 38826385
Thanks for your help on that. I created a line in the already exisiting "logon.bat" which works great. Only problem is that when I log onto the server, it also tries to load Outlolok. How can I prevent this?
0
 
LVL 5

Accepted Solution

by:
Coffinated earned 500 total points
ID: 38826632
You can use Group policies to execute that batch script, if you are using Server 2008 you can target script execuiton based on user, computername, group membership etc.
http://blogs.technet.com/b/askds/archive/2011/06/13/target-group-policy-preferences-by-container-not-but-group.aspx
0
 
LVL 5

Expert Comment

by:Coffinated
ID: 38827569
If you can't target using Group Policies, modify your script to detect computer name, example below.

@echo off
set MyPC=MY-SERVER-1
IF %COMPUTERNAME%==%MyPC% GOTO Label2
:Label1
 echo "different computer found, skip the script execution"
 echo "for testing purposes"
 echo %computername%
 echo %mypc%
 echo "Skipping execution"
 goto END

:Label2
 echo "Found computer - do some stuff"


:END

Open in new window

0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Suggested Courses

617 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