locked
Shutdown a computer remotely by running a .bat on a second computer connected to a UPS RRS feed

  • Question

  • Hello,

    To try and avoid confusion.

    Computer 1 (The one with the UPS)

    Computer 2

    I have two computers connected to the same UPS. I have created a .bat that when run from Computer 1, allows me to remotely shutdown Computer 2 but I am having trouble getting Computer 1 to send the signal to Computer 2 after the UPS tells the Computer 1 to shutdown.

    Is there a way to do this using .bats?

    Wednesday, March 26, 2014 2:45 PM

Answers

  • The shutdown.exe program can shut down a remote computer from a shell script (batch file), provided you run it from an account that has permission to shut down the remote computer.

    For information about how to use it, type shutdown /? at a command prompt.


    -- Bill Stewart [Bill_Stewart]

    • Proposed as answer by Bill_Stewart Monday, March 31, 2014 2:34 PM
    • Marked as answer by Bill_Stewart Monday, May 19, 2014 10:12 PM
    Wednesday, March 26, 2014 3:02 PM

All replies

  • The shutdown.exe program can shut down a remote computer from a shell script (batch file), provided you run it from an account that has permission to shut down the remote computer.

    For information about how to use it, type shutdown /? at a command prompt.


    -- Bill Stewart [Bill_Stewart]

    • Proposed as answer by Bill_Stewart Monday, March 31, 2014 2:34 PM
    • Marked as answer by Bill_Stewart Monday, May 19, 2014 10:12 PM
    Wednesday, March 26, 2014 3:02 PM
  • If the batch is run after the computer begins the shutdown.  The computer cannot communicate at this point.  You must run the batch under an admin account on the remote machine and it must run before the local shutdown begins.

    You really should use a network based UPS to manage multiple devices.


    ¯\_(ツ)_/¯

    • Proposed as answer by jrv Monday, March 31, 2014 2:47 PM
    Wednesday, March 26, 2014 3:13 PM