Manual Autostart Push2Run with Windows 10 Task Scheduler

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
REDDDDY
Posts: 11
Joined: Tue May 24, 2022 12:13 pm

Manual Autostart Push2Run with Windows 10 Task Scheduler

Post by REDDDDY »

Manual Autostart Push2Run with Windows 10 Task Scheduler

The main and only reason for this is to avoid the screen prompt for Admin Privileges during the windows startup.
I am sure, we all want this to be fully automated and understand the need of not wanting to manual click the prompt.

I have disabled the Autostart with windows from the built-in configuration settings in Push2Run.

I opened up Task Scheduler [which can be found through the windows start menu search]
then following this youtube video https://www.youtube.com/watch?v=jt1Eb-NaBeg

During the test phase
I already made sure, there was no instance running in the background/foreground
begin manual executing/running the task on demand for testing..
it gave me this error below..

Image

hoping to see if you/anyone could help me get this sorted out 🙂
REDDDDY
Posts: 11
Joined: Tue May 24, 2022 12:13 pm

Re: Manual Autostart Push2Run with Windows 10 Task Scheduler

Post by REDDDDY »

I have figured it out.

Just follow these picture (for reference) and everything should be working fine.

Image
Image
Image
Image
Image

Image
Image

After everything has been configured accordingly, shutdown/exit Push2Run by right-click and choose Exit from the Tray Icon.
RUN a test as per screenshot below and see if it works without giving anymore error/s.

Image
RobLatour
Site Admin
Posts: 1017
Joined: Mon Feb 19, 2018 11:43 am

Re: Manual Autostart Push2Run with Windows 10 Task Scheduler

Post by RobLatour »

Thanks very much for sharing this Reddddy!
REDDDDY
Posts: 11
Joined: Tue May 24, 2022 12:13 pm

Re: Manual Autostart Push2Run with Windows 10 Task Scheduler

Post by REDDDDY »

After further automated testing, I found out that it doesn't work.
The commands goes through fine, but Push2Run refuse to execute the command.

Here is one of the executed command LOG that was initiated with Push2Run autostart by TaskScheduler even with Highest Privileged.

2022-06-11 08:26:23.468 - Incoming Dropbox trigger ...
2022-06-11 08:26:24.471 - Processing Dropbox file: D:\Dropbox\Apps\Push2Run\Command.txt
2022-06-11 08:26:24.472 - File contents:
Push2Run_Redacted
disconnected from Redacted 5.0 GHz
2022-06-11 08:26:27.223 - The action was run, but it appears to have failed

2022-06-11 08:26:33.734 - Deleting : D:\Dropbox\Apps\Push2Run\Command.txt

Let me know if others, has tried this out and managed to troubleshoot the root of the problem.
RobLatour
Site Admin
Posts: 1017
Joined: Mon Feb 19, 2018 11:43 am

Re: Manual Autostart Push2Run with Windows 10 Task Scheduler

Post by RobLatour »

What is the program you are trying to run?

Does it have parameters?

Do you have the option 'Admin privileges checked on the Push2Run card?
REDDDDY
Posts: 11
Joined: Tue May 24, 2022 12:13 pm

Re: Manual Autostart Push2Run with Windows 10 Task Scheduler

Post by REDDDDY »

No, all of my cards don't have 'Admin privileges' checked.
Are they supposed to be checked? even though the program itself already Elevated with Admin Rights? :shock:

The card that I was testing is just the generic 'Lock my pc' when my androijd device is disconnected from specific wifi.
It would work fine if I was not to run it with Task Scheduler.

Image
REDDDDY
Posts: 11
Joined: Tue May 24, 2022 12:13 pm

Re: Manual Autostart Push2Run with Windows 10 Task Scheduler

Post by REDDDDY »

REDDDDY wrote: Sun Jun 12, 2022 4:10 pm No, all of my cards don't have 'Admin privileges' checked.
Are they supposed to be checked? even though the program itself already Elevated with Admin Rights? :shock:

The card that I was testing is just the generic 'Lock my pc' when my androijd device is disconnected from specific wifi.
It would work fine if I was not to run it with Task Scheduler.

Image

After checking all the cards with Admin Rights.. everything works with TaskScheduler.

This is perfect!! :mrgreen:
RobLatour
Site Admin
Posts: 1017
Joined: Mon Feb 19, 2018 11:43 am

Re: Manual Autostart Push2Run with Windows 10 Task Scheduler

Post by RobLatour »

Great, glad that worked.
Post Reply