How long to wait after pc starts to run a trigger?
-
Hi, I timed my boot process on my PC (came from a hibernate state), and it tooks 20 secs.
But after several tests, I realized that I can only run a trigger on the agent in about 40 secs.How can I make the agent be one of the first processes to start on windows inicialization, so with that I can run a trigger in 25 seconds (more or less.. I mean early from that long 40 sec time) after boot. I mean as close as possible to the startup of the operating system?
Note ... My PC goes straight through the login screen, without asking for a username and password. when i said it is 20 seconds of boot, i mean that in 20 seconds i am already on the windows screen able to run any program.
Br
-
@Ivan-Kuler, the agent should re-connect to the server as soon as the PC reconnects to the Internet. You could try running this command in a cmd window to compare when the pings start working vs. when the TRIGGERcmd agent reconnects:
ping -t 8.8.8.8
-
Thanks Russ... I´m thinking if a run the command on background will improve this!?
So I did a VBS script with the command that I would like to run on background.. installed the service, close the agent, and don´t allow it to start with windows (so only the service is running)... after a restar on the computer, the first atemp to run the command works, but never more... -
@Ivan-Kuler, I wonder if the background service is crashing when you run that .vbs script.
You could open services.msc and see if "Running" goes away when you run the command.
If it is, you might be able to prevent that by prefixing your command with "start ", like this:
start cscript c:\tools\script.vbs
-
@Ivan-Kuler said in How long to wait after pc starts to run a trigger?:
PC passa direto pela tela de login, sem pedir um nome de usuário e senha
Good morning... why when I come back from hibernation with windows11 through Alexa it doesn't go straight to the Desktop?...it turns on, goes through the BIOS screen and stays idle... i need to press a key for the monitor to wake up... I would like it to enter directly, without having to press a key... any tips?
PS: My PC also goes straight through the login screen, without asking for the username and password.