Shutdown last running pc on the LAN with Synology Server
Posted: 04 Feb 2015 08:45
I have a LAN with 4 PCs and one Synology server. I wish that every time a computer is turned off, it runs a batch (from windows pc) and see if other PCs are on, - if any is on do nothing, - otherwise runs a command that shuts down the server.
Here is what I have at the moment:
But I would like to do something like:
http://i.imgur.com/BLAVCBt.png

Thank You!!
Here is what I have at the moment:
Code: Select all
@echo off
PING 192.168.1.10
IF %ERRORLEVEL% EQU 1 plink root@192.168.1.10 -pw MYPASSWORD shutdown -s -t 00
But I would like to do something like:
http://i.imgur.com/BLAVCBt.png

Thank You!!