Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Shutting down by Windows command?

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 686 Views 2 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.
    • K Offline
      kzHchris
      last edited by

      Hey, guys!
      To be fair, I didn't researched that much for the solution that I wanted, but I would like your opinion:

      Explaining the scenario:
      I have a nobreak that shuts down my Windows Server by command line in a .bat archive (shutdown -s -f -t 0) but I want to involve my pfsense to shutdown inside this command line.

      Is there a way to shutdown my pfsense by this kind of command line that I can add into my .bat archive?

      I 1 Reply Last reply Reply Quote 0
      • I Offline
        itpp21 @kzHchris
        last edited by

        Use winscp and script a ssh command.

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kzHchris @itpp21
          last edited by

          @itpp21 Hey, tks for the help, but I was wondering if there's a command that I can insert in my actual .bat archive.
          Something like: shutdown -ipofmypfsense -s ....

          kiokomanK 1 Reply Last reply Reply Quote 0
          • kiokomanK Offline
            kiokoman LAYER 8 @kzHchris
            last edited by

            @kzhchris
            can be done with putty

            "C:\Program files (x86)\puTTY\plink.exe" -ssh -root@pfsenseip -pw <password> poweroff
            

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            Please do not use chat/PM to ask for help
            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

            K 1 Reply Last reply Reply Quote 1
            • K Offline
              kzHchris @kiokoman
              last edited by

              @kiokoman said in Shutting down by Windows command?:

              "C:\Program files (x86)\puTTY\plink.exe" -ssh -root@pfsenseip -pw <password> poweroff

              That's great!
              I'll try and post later.

              Thanks, guys!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.