Score:-1

Logon scrip that kills another user's task

ec flag

Running a Win 2016 server with one application that can only be used by one user at a time. I have a prioritized user account on the server. When that user logs in, he should always be able to start that specific application.

My idea was to make a logon script that kills the applications task for all users. That way my prioritzed user will be able to start up the application.

I've not succeeded creating that logon script. Can anyone help me or advice me to any other solution?

Score:0
us flag

Check taskkill command

E.g. taskkill /im "process.exe"

Make sure the script is running with local admin rights and in elevated mode ("Run with the highest privileges" check in Task Scheduler).

HenrikGX avatar
ec flag
Thank you! I was not aware I could do that via Task Scheduler. That solved my issue
mangohost

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.