Forum Discussion

Fortu's avatar
Fortu
Copper Contributor
Oct 12, 2022

Task Scheduler with multiuser

Hi,

I have an application which is installed for each user, I mean in %localappdata%\Programs.

Then I have created activities, one for each user which starts its own application (the one in %localaapdata%).

I want the activity starts when user insert his password.

But it happens this, I have two users A and B. I switch off computer, log A and App starts. Switch off /on computer log on B and both the activities in the task scheduler runs even if I specified the activity to run when user logs.

Is there a way to achieve my goal, have two activities, and run the one the user logged.

Best 

 

2 Replies

  • Yahyati's avatar
    Yahyati
    Brass Contributor

    To achieve your goal of running a specific activity for each user when they log in, especially considering that your applications are installed per-user in %localappdata%\Programs, and you want the activity to trigger upon user login (like after entering the password), you need to ensure the task is correctly configured for each user.

  • PhillipsJohnson's avatar
    PhillipsJohnson
    Copper Contributor

    In the Task Scheduler, create a separate task for each user’s application, set the trigger to run at logon, and in the security options, select the specific user rather than the user currently logged on.