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

TRIGGERcmd not starting at boot

General Discussion
8
50
4.4k
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.
  • R
    Russ @Mark Hollis
    last edited by Russ Jan 9, 2023, 11:16 PM Jan 9, 2023, 11:14 PM

    @Mark-Hollis, I actually included a feature to run the agent in background mode in the context of a Windows service that starts up on boot. It runs your background commands elevated.

    You install it using this "Install Background Service"

    ee6e0e1f-a6a7-4891-a8ee-e0d738adfb64-image.png

    Set your commands as background commands like this:

    23d9bd6b-369b-4b3e-b42e-7e61708def7e-image.png

    The normal forground agent starts up when you login, and it runs commands non-elevated.

    If you still want to use a shortcut with that "Run this program as an administrator" checkbox checked, you'll need to disable UAC, and you'll need to check the box on the TRIGGERcmd Agent shortcut in this folder:

    C:\Users\Carmelo\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

    This article shows how to quickly open that folder with shell:startup.

    18677580-5d63-486d-b700-b1627fb735a8-image.png

    Russell VanderMey

    M 1 Reply Last reply Jan 9, 2023, 11:28 PM Reply Quote 0
    • M
      Mark Hollis @Russ
      last edited by Jan 9, 2023, 11:28 PM

      @Russ i already have uac disable, and ticked administrator to that shortcut in that folder, but this way don't start when windows 10 start

      1 Reply Last reply Reply Quote 0
      • T
        trinib
        last edited by trinib May 20, 2025, 9:16 AM May 20, 2025, 9:08 AM

        I have this a same issue on windows 10 when no internet at startup. And even with the feature @Russ added - check for internet connection every 10 second is useless for when no internet, service never start properly even after connecting to internet. Will need to force close service and run again with internet on.

        ##### But easy work around using task scheduler.😉👇

        1. Open Task Scheduler
        • Start Menu → Task Scheduler
        1. New Task
        • Action: Create Task…
        • Name: TriggerCMD Agent
        • Security: Run only when user is logged on
        • (Optional: check “Run with highest privileges”)
        1. Trigger
        • Click Triggers → New…
        • Begin the task: At log on
        • Settings: Specific user or Any user → OK
        1. Action

        Actions → New…

        • Action: Start a program
        • Program/script:
          C:\Users\Admin\AppData\Local\triggercmdagent\TRIGGERcmdAgent.exe
        • OK
        1. Condition
        • Go to Conditions tab
        • Check Start only if the following network connection is available
        • Select Any connection
        • OK
        1. Finish

        Click OK to save
        (Enter your password if prompted)

        LOVE THIS SOFTWARE . Hope it never dies 🙏. paying for full features😎

        R 1 Reply Last reply May 20, 2025, 6:10 PM Reply Quote 0
        • R
          Russ @trinib
          last edited by Russ May 21, 2025, 9:04 PM May 20, 2025, 6:10 PM

          Thanks @trinib, and thank you for reporting the problem. I should be able to reproduce it and fix it in the next version. I thought I had it fixed but apparently not.

          EDIT: I confirmed if the agent starts and can't access the Internet, it closes. It should keep trying to connect, so I'll fix this soon.

          EDIT2: Actually, when I went to fix this I found that the agent does start, but it doesn't show the tray icon until the Internet connects. Fortunately that's a smaller problem, but I think it should show the icon with or without Internet. I'll work on that for next the agent version.

          Russell VanderMey

          T 1 Reply Last reply May 23, 2025, 4:59 PM Reply Quote 0
          • T
            trinib @Russ
            last edited by May 23, 2025, 4:59 PM

            @Russ yea i left out that some triggercmd services shows its running but no tray icon. Reconnecting to internet never get service to get triggercmd to become online unless i force close services after connecting to internet ofc.

            R 1 Reply Last reply May 26, 2025, 3:08 PM Reply Quote 0
            • R
              Russ @trinib
              last edited by May 26, 2025, 3:08 PM

              @trinib, I just released version 1.0.47 for Windows that will show the icon with a "Waiting for internet" message until the Internet is connected, then it will show the full tray icon menu.

              Would you mind testing it? I tested it and it seems to work well.

              Russell VanderMey

              T 1 Reply Last reply May 30, 2025, 2:36 AM Reply Quote 0
              • T
                trinib @Russ
                last edited by May 30, 2025, 2:36 AM

                @Russ Reinstalled new version and the services start properly and shows on account my computer is connected with green dot BUT it still shows waiting for internet in tray and triggers are not working,

                OS Name: Microsoft Windows 10 IoT Enterprise LTSC
                OS Version: 10.0.19044 N/A Build 19044
                OS Manufacturer: Microsoft Corporation
                OS Configuration: Standalone Workstation
                OS Build Type: Multiprocessor Free

                80094278-e7a1-4b50-82de-176f73e1f633-image.png

                1 Reply Last reply Reply Quote 0
                • T
                  trinib
                  last edited by May 30, 2025, 4:35 AM

                  @Russ it looks like its not at startup the problem only occurs for me cause. When i close all services with no internet and start triggercmd again and shows tray with "waiting for internet" and then I connect to internet(with and without VPN), it still had issue. It just needs internet for me for it to start up properly. I tried setting the main exe and the demon exe as admin and no luck.

                  In short if no internet at startup, triggercmd does not start properly. I don't know if something else can cause a conflict at startup&no-internet with triggercmd. Really weird.

                  Startup with no internet - issue
                  After startup issue, connect to internet - still issue
                  Startup with internet - works
                  After startup issue, I force close and restart with internet - works

                  1 Reply Last reply Reply Quote 0
                  • T
                    trinib
                    last edited by May 30, 2025, 4:52 AM

                    @Russ maybe try to find a way to restart (like upgrade) when detect internet. Use ping ideology, send a small data packet to the target host and wait for response, when do, restart service. IDK just an idea. sure AI could fix this easily 😅.

                    R 1 Reply Last reply May 30, 2025, 12:18 PM Reply Quote 0
                    • R
                      Russ @trinib
                      last edited by Russ May 30, 2025, 12:25 PM May 30, 2025, 12:18 PM

                      @trinib, I can't reproduce the problem with version 1.0.47. For me, within 10 seconds, it always transitions from "Waiting for internet" to the full menu after I re-enable wifi. It get the same result whether I rebooted without wifi or just closed and re-opened the agent without wifi.

                      I don't use the background service (aka the TRIGGERcmdAgent windows service). I'll enable that and do more testing, but that shouldn't effect the tray icon because it's only for the foreground agent.

                      FYI, the background service is not necessary unless you want to be able to run command while you're logged out. Most people don't need it.

                      Russell VanderMey

                      T 1 Reply Last reply May 30, 2025, 6:55 PM Reply Quote 0
                      • T
                        trinib @Russ
                        last edited by May 30, 2025, 6:55 PM

                        @Russ yes most likely issue on my end with windows . I have some troubleshooting ideas ill test and see . thanks 👍

                        1 Reply Last reply Reply Quote 0
                        • Fabrizio HolsteinF
                          Fabrizio Holstein
                          last edited by Jun 14, 2025, 4:39 PM

                          Hello!

                          I formatted my computer, and when I tried to use TriggerCMD, it didn’t start automatically. I’ve tried all the solutions mentioned here, but nothing works.

                          R 1 Reply Last reply Jun 16, 2025, 2:29 AM Reply Quote 0
                          • R
                            Russ @Fabrizio Holstein
                            last edited by Russ Jun 16, 2025, 11:46 AM Jun 16, 2025, 2:29 AM

                            @Fabrizio-Holstein, does it start if you run it manually?

                            If not, please try renaming your c:\Users\(your user)\.TRIGGERcmdData folder, and then re-run the triggercmd agent. It will prompt again for the token.

                            Russell VanderMey

                            Fabrizio HolsteinF 1 Reply Last reply Jun 16, 2025, 4:59 PM Reply Quote 0
                            • Fabrizio HolsteinF
                              Fabrizio Holstein @Russ
                              last edited by Jun 16, 2025, 4:59 PM

                              @Russ yes, when I run manualy it start.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post