"Whether user is logged on or not" run in the background and I need it to allow user interaction

Shimi 1 Reputation point
2024-03-19T07:36:38.23+00:00

I have a task I need to run no matter what user is logged on, but when I do it - it runs in the background and I need the user to interact with it.

when I run it on command it works if I choose "only when the user is logged in", but not in the background.

in the screenshot there's a command to make sure Num Lock is active (so I'm open to other ways to do it) but I also have another one on a different computer that opens a software with admin privilegs on a regular user so I also need a way to do that anyway.

General Tab

Actions Tab

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,195 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Karlie Weng 16,431 Reputation points Microsoft Vendor
    2024-03-21T09:33:28.5366667+00:00

    Hello,

    You may try to check the "Run with highest privileges" box or change your user account like system or someone else.

    Meanwhile, if you are using a domain user, notice if your user can be authenticated. 


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  2. MotoX80 32,911 Reputation points
    2024-03-21T12:29:36.6233333+00:00

    Set it to the Users group.

    User's image

    For the trigger set it to at log on of any user.

    User's image

    If you don't want to see the Powershell window add this switch "-WindowStyle Hidden".

    0 comments No comments