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

Command using Background Service

General Discussion
2
12
882
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 @Forbidden Duck
    last edited by Russ Feb 21, 2020, 4:57 PM Feb 21, 2020, 4:56 PM

    @Forbidden-Duck, can you try restarting the service? Also, can you run any other background commands, like reboot?

    I assume foreground commands work fine.

    Russell VanderMey

    F 1 Reply Last reply Feb 23, 2020, 1:31 PM Reply Quote 0
    • F
      Forbidden Duck
      last edited by Feb 22, 2020, 12:53 AM

      I just tested the foreground commands and they don't work either

      F 1 Reply Last reply Feb 22, 2020, 1:19 AM Reply Quote 0
      • F
        Forbidden Duck @Forbidden Duck
        last edited by Feb 22, 2020, 1:19 AM

        @Forbidden-Duck
        I've fixed the foreground commands, I just had to make a bat file which changed the directory to Windows\System32 and it worked. However, I'm having issues with sleep mode. I made the bat file for it, if I run it as Admin it works fine, however it doesn't work with the background service and just having the plain command in the background command doesn't work either. I don't know why.

        1 Reply Last reply Reply Quote 0
        • F
          Forbidden Duck @Russ
          last edited by Feb 23, 2020, 1:31 PM

          @Russ Are you able to help?

          R 1 Reply Last reply Feb 23, 2020, 1:46 PM Reply Quote 0
          • R
            Russ @Forbidden Duck
            last edited by Feb 23, 2020, 1:46 PM

            @Forbidden-Duck, what command are you using to put your computer to sleep? I just tested this command as a background command on my Windows 10 PC and it worked - it put my PC to sleep.

            d:\tools\psshutdown.exe /d /t 1
            

            Russell VanderMey

            F 1 Reply Last reply Feb 25, 2020, 2:09 PM Reply Quote 0
            • F
              Forbidden Duck @Russ
              last edited by Feb 25, 2020, 2:09 PM

              @Russ I'm using the same command, however it just won't work.

              psshutdown -d -t 10
              
              R 1 Reply Last reply Feb 26, 2020, 1:59 AM Reply Quote 0
              • R
                Russ @Forbidden Duck
                last edited by Russ Feb 26, 2020, 2:04 AM Feb 26, 2020, 1:59 AM

                @Forbidden-Duck, I notice your command didn't specify a folder, so do you have the psshutdown.exe downloaded to a folder in your PATH variable? Instead of using the PATH variable you could also specify the folder in your command like I did.

                Psshutdown.exe doesn't come with Windows but you can download it from here.

                Russell VanderMey

                F 1 Reply Last reply Feb 26, 2020, 1:19 PM Reply Quote 0
                • F
                  Forbidden Duck @Russ
                  last edited by Forbidden Duck Feb 26, 2020, 1:22 PM Feb 26, 2020, 1:19 PM

                  @Russ I have psshutdown installed already. It worked fine until recently where it just stopped same with the foreground commands. I changed the foreground commands to batch files and they work fine now it's just the psshutdown fails to work. I changed the command to specify the PATH and it still doesn't work.

                  R 1 Reply Last reply Feb 26, 2020, 1:55 PM Reply Quote 0
                  • R
                    Russ @Forbidden Duck
                    last edited by Feb 26, 2020, 1:55 PM

                    @Forbidden-Duck, some things to try or confirm:

                    Do you see "Command ran" in the Runs list for that command? If not, please try uninstalling the background service and re-installing it after a reboot.

                    Please confirm other background commands work, it's just this one that doesn't.

                    Try logging the output of the command like this:
                    "...psshudown.exe >> c:\folder\log.txt"

                    Sorry for the trouble. I know we can make this work tho.

                    Russell VanderMey

                    F 1 Reply Last reply Feb 29, 2020, 2:50 PM Reply Quote 0
                    • F
                      Forbidden Duck @Russ
                      last edited by Feb 29, 2020, 2:50 PM

                      @Russ Appears it decided to start working again. I hadn't done anything and the other day I tested it and it worked. I'm unsure what was stopping it from working but it seems good for now.

                      R 1 Reply Last reply Mar 1, 2020, 6:21 PM Reply Quote 0
                      • R
                        Russ @Forbidden Duck
                        last edited by Mar 1, 2020, 6:21 PM

                        @Forbidden-Duck, that's good. I hope it stays working.

                        Russell VanderMey

                        1 Reply Last reply Reply Quote 0
                        11 out of 12
                        • First post
                          11/12
                          Last post