TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How long to wait after pc starts to run a trigger?

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 1.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Ivan KulerI Offline
      Ivan Kuler
      last edited by

      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

      RussR 1 Reply Last reply Reply Quote 0
      • RussR Offline
        Russ @Ivan Kuler
        last edited by Russ

        @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

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • Ivan KulerI Offline
          Ivan Kuler
          last edited by

          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...

          RussR 1 Reply Last reply Reply Quote 0
          • RussR Offline
            Russ @Ivan Kuler
            last edited by Russ

            @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.

            e8841cbd-25bd-4187-9051-816c87e8ca36-image.png

            If it is, you might be able to prevent that by prefixing your command with "start ", like this:

            start cscript c:\tools\script.vbs
            

            Russell VanderMey

            1 Reply Last reply Reply Quote 0
            • Carlos JuniorC Offline
              Carlos Junior
              last edited by Carlos Junior

              @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.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post