/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


How to START Outlook.exe through K1000 MI batch file

08/11/2020 211 views

What the best way to START Outlook backup after installing software?  I do a taskkill to shut Outlook down.  I then install my Outlook plug in. All successfully but when I go to open it back up through the batch file it doesn't work. 


I've used:

For /F "Tokens=1" %%I In ('tasklist /FI "IMAGENAME eq OUTLOOK.EXE" /FI "USERNAME eq %Username%"') Do If /I "%%I"=="OUTLOOK.EXE" Goto :EOF

Start Outlook.exe

and

start "" "%ProgramFiles%\Microsoft Office\root\Office16\outlook.exe"


But will not work in K1000 Managed Installations. 


If I launch the batch for both locally on the computer they both work fine just not through KACE MI.   

0 Comments   [ + ] Show comments

Comments



Community Chosen Answer

1

Managed installs run in the context of the system user, so Outlook may be launching but wont' be visible to the logged in user. In order to relaunch Outlook you would need to detect the locally logged in user and launch the process as that user.

We found it easier to add a completion message to the managed install telling the user the installation is complete and they can now open Outlook.

Answered 08/12/2020 by: chucksteel
Red Belt

All Answers

This content is currently hidden from public view.
Reason: Member has been banned from the site SPAMMER For more information, visit our FAQ's.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ