Restart program after scheduled profile

SyncBackFree is the freeware version of SyncBack. It is *not* an evaluation version of SyncBackPro/SE/Lite.
Post Reply
horenh
Newbie
Newbie
Posts: 1
Joined: Fri Dec 07, 2018 3:41 pm

Restart program after scheduled profile

Post by horenh » Fri Dec 07, 2018 3:49 pm

i like to stop outlook before make the backup from the pst file and restart outlook after the backup. i put before run profile the role "taskkill /IM outlook.exe /F" and that works oke. after the backup in the role After the profile excecuted "C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE".
When i start the profile bij hand its works perfect.
But when i scheduled the profile than de stop is going well but there is never een restart from outlook. In the scheduler i fill inn the pasword off the user.
So what doing wrong.

User avatar
mickyj
2BrightSparks Staff
2BrightSparks Staff
Posts: 775
Joined: Mon Jan 05, 2004 6:51 pm

Re: Restart program after scheduled profile

Post by mickyj » Mon Dec 10, 2018 2:52 am

Hi, the problem is that when a program is run from the scheduler, it will run in a different session (session 0): https://www.2brightsparks.com/resources/articles/understanding-sessions-in-windows.html

So when you start Outlook from SyncBack, and it's scheduled, it doesn't start Outlook in the same session as you are logged into, hence you don't see Outlook. One fix is to have the schedule only run when you are logged in. That way the scheduled task runs in your session.

Post Reply