Is it possible to call one Windows scheduled task from another Windows scheduled task?

az flag

I have created two independent task Windows scheduled task's:

  1. First task running under system-context (needs to run under system-context as application needs to be installed silently) checks if already installed application as any updates on every scheduled interval.

  2. Second task running user-context (needs to run under user-context because when run under system-context its running in background) which open one pop-up for restart.

I want to call second task which is running under user-context only when there is updates available for the application.

If anyone has suggestions it would be much appreciated

au flag

The first task may start the 2nd, yes. The syntax would simply be

schtasks /run /TN secondtasksname
im flag

Yes, The second task can run if any updates are available to install.

For this you can script with IF/ELSE conditions, If no update exist don't trigger the second task, Else script will trigger the second task to install the updates.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.