Solved

Logon script to load MS Outlook at startup

Posted on 2013-01-28
5
754 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Clustering 4 44
Upgrade View 5.1.2 to Horizon 7 3 56
multi city video livestream 3 14
Microsoft Edge, Outlook OWA 7 43
Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now