Install P2R as (System)Service

Here you are welcome to post Push2Run feature requests
Post Reply
CanisLupus
Posts: 1
Joined: Sat Jul 20, 2019 3:22 pm

Install P2R as (System)Service

Post by CanisLupus »

First i have to say, its working nice, even with the german language :-)

But it would be cool if i can install P2R as an Service which is already running before a user has logged in to windows.

Autostart works only when i log in...
And when i need Admin privileges and i have activated the auto Adminfunction at P2R loading i get always asked if i want to grant those rights to P2R on every Windows Login. -.-

I already tried to start P2R with the windows Tasks function. But P2R only starts partially.
I found it in windows Taskmanager, but it was not really started and not working.

But i need those Admin rights.

Background:
I want to set my PC to Standby.
I know i need more commands... So i made an "cmd" file.

Code: Select all

powercfg /H off
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
powercfg /H on
the problem i have is that the "powercfg" needs admin rights.

So if i do that without admin rights, powercfg sends me a message that it can`t be performed...
Than the PC is shutdown (maybe) with hibernate to disk...

But i only need Standby because i want to restart my PC with WOL(Wake On Lan)
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Install P2R as (System)Service

Post by RobLatour »

Push2Run was not designed to run as a service.

To put your computer into sleep mode using Push2Run without admin privileges, on your Push2run card, in the open field, enter:

desktop

In the keys to send field enter:

{WIN}{X}{U}{S}

Hope that helps
Post Reply