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

Background Service not installing?

General Discussion
2
12
935
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.
  • F
    Forbidden Duck
    last edited by Jan 22, 2020, 4:47 AM

    Hello,
    I've spent a while trying to get a command which triggers the computers Sleep (not hibernation). I have psshutdown command working correctly however it requires Administration.

    I clicked install on background service, no dialog came up about it other the permission to allow Node.JS to do something. I checked the debug.log all it says is

    Installing background service
    Installing background service.
    Installing service.
    

    I have tried numerous attempts to run the command non succeeded would love some help.

    R 1 Reply Last reply Jan 22, 2020, 3:54 PM Reply Quote 0
    • R
      Russ @Forbidden Duck
      last edited by Russ Jan 22, 2020, 4:53 PM Jan 22, 2020, 3:54 PM

      @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

      F 1 Reply Last reply Jan 22, 2020, 9:51 PM Reply Quote 0
      • F
        Forbidden Duck @Russ
        last edited by Forbidden Duck Jan 22, 2020, 9:51 PM Jan 22, 2020, 9:51 PM

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

        R 1 Reply Last reply Jan 22, 2020, 10:09 PM Reply Quote 0
        • R
          Russ @Forbidden Duck
          last edited by Russ Jan 22, 2020, 10:10 PM Jan 22, 2020, 10:09 PM

          @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

          F 1 Reply Last reply Jan 22, 2020, 10:13 PM Reply Quote 0
          • F
            Forbidden Duck @Russ
            last edited by Jan 22, 2020, 10:13 PM

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

            R 1 Reply Last reply Jan 22, 2020, 10:24 PM Reply Quote 0
            • R
              Russ @Forbidden Duck
              last edited by Russ Jan 22, 2020, 10:24 PM Jan 22, 2020, 10:24 PM

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

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

              Russell VanderMey

              F 1 Reply Last reply Jan 22, 2020, 10:25 PM Reply Quote 0
              • F
                Forbidden Duck @Russ
                last edited by Jan 22, 2020, 10:25 PM

                @Russ
                Event Viewer says it terminated unexpectedly.

                debug.log doesn't say anything about it.

                R 1 Reply Last reply Jan 22, 2020, 10:51 PM Reply Quote 0
                • R
                  Russ @Forbidden Duck
                  last edited by Russ Jan 22, 2020, 10:51 PM Jan 22, 2020, 10:51 PM

                  @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

                  F 1 Reply Last reply Jan 22, 2020, 10:56 PM Reply Quote 0
                  • F
                    Forbidden Duck @Russ
                    last edited by Jan 22, 2020, 10:56 PM

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

                    R 1 Reply Last reply Jan 23, 2020, 12:08 AM Reply Quote 0
                    • R
                      Russ @Forbidden Duck
                      last edited by Jan 23, 2020, 12:08 AM

                      @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

                      F 2 Replies Last reply Jan 23, 2020, 2:22 AM Reply Quote 0
                      • F
                        Forbidden Duck @Russ
                        last edited by Jan 23, 2020, 2:22 AM

                        @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
                        • F
                          Forbidden Duck @Russ
                          last edited by Forbidden Duck Jan 24, 2020, 2:45 AM Jan 24, 2020, 2:40 AM

                          @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
                          7 out of 12
                          • First post
                            7/12
                            Last post