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

    Background Service not installing?

    General Discussion
    2
    12
    801
    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.
    • RussR
      Russ @Forbidden Duck
      last edited by Russ

      @Forbidden-Duck, can you check whether the TRIGGERcmdAgent service started? If it's not started, please see if it starts, and stays running.

      You can open the list of Windows services with this command: services.msc

      e5de3947-88bd-4ce9-a817-e03d975e5ebf-image.png

      If that's running, then your background commands should show up in the web interface and you should be able to trigger them.

      EDIT: I tried this myself and found it didn't work at first because psshutdown.exe needs each user to agree to its EULA before it works, and the SYSTEM user hadn't agreed yet. So, here's what worked:

      1. Open a cmd prompt as SYSTEM with this command: psexec -i -s cmd.exe
      2. Run psshutdown.exe in that cmd prompt, and agree to the EULA.
      3. Now this should work as a background command: d:\tools\psshutdown.exe /d /t 1

      Russell VanderMey

      Forbidden DuckF 1 Reply Last reply Reply Quote 0
      • Forbidden DuckF
        Forbidden Duck @Russ
        last edited by Forbidden Duck

        @Russ
        Ok, I got psshutdown working properly however the service isn't working properly. I went to services and noticed it wasn't running so I started it. After about 10 seconds it stopped itself. I reinstalled the background service and tried again. Same result.

        RussR 1 Reply Last reply Reply Quote 0
        • RussR
          Russ @Forbidden Duck
          last edited by Russ

          @Forbidden-Duck, I'm glad you got psshutdown working.

          About the background service, if you didn't already try this, please remove the background service, reboot, then re-install it. I'm hoping that will fix it.

          Russell VanderMey

          Forbidden DuckF 1 Reply Last reply Reply Quote 0
          • Forbidden DuckF
            Forbidden Duck @Russ
            last edited by

            @Russ
            I uninstalled the background services, rebooted and installed it again. Still having the same issue. Just stops after 10 seconds.

            RussR 1 Reply Last reply Reply Quote 0
            • RussR
              Russ @Forbidden Duck
              last edited by Russ

              @Forbidden-Duck, dang. That's odd.

              Is there anything in Event Viewer or %userprofile%\.TRIGGERcmdData\debug.log about it?

              Russell VanderMey

              Forbidden DuckF 1 Reply Last reply Reply Quote 0
              • Forbidden DuckF
                Forbidden Duck @Russ
                last edited by

                @Russ
                Event Viewer says it terminated unexpectedly.

                debug.log doesn't say anything about it.

                RussR 1 Reply Last reply Reply Quote 0
                • RussR
                  Russ @Forbidden Duck
                  last edited by Russ

                  @Forbidden-Duck, it works in the foreground, so it's probably not Antivirus killing it.

                  Just as a troubleshooting step, you want to try running the service as your own account? I'm curious if that would make a difference. To get your username, type whoami in a cmd window. It should look something like this: computer\user

                  Russell VanderMey

                  Forbidden DuckF 1 Reply Last reply Reply Quote 0
                  • Forbidden DuckF
                    Forbidden Duck @Russ
                    last edited by

                    @Russ
                    Tried it with the User Account. Works fine, didn't stop.

                    RussR 1 Reply Last reply Reply Quote 0
                    • RussR
                      Russ @Forbidden Duck
                      last edited by

                      @Forbidden-Duck, I don't know why it won't run as Local System on your computer. It runs that way on most computers.

                      You could confirm the "SYSTEM" account has access to your %userprofile%\.TRIGGERcmdData folder.

                      Otherwise I'm running low on ideas.

                      Russell VanderMey

                      Forbidden DuckF 2 Replies Last reply Reply Quote 0
                      • Forbidden DuckF
                        Forbidden Duck @Russ
                        last edited by

                        @Russ
                        Yea SYSTEM has access to that. That is odd that it's doing that. However it appears its working on the User Account, I suppose I'll keep it like that.

                        1 Reply Last reply Reply Quote 0
                        • Forbidden DuckF
                          Forbidden Duck @Russ
                          last edited by Forbidden Duck

                          @Russ
                          It appears the service doesn't want to startup properly now. I have to manually start it up myself. Currently it's set as Automatic.
                          and abort sleep isn't being discovered by my alexa.

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