Search code examples
windowsbatch-fileshutdownlan

Shutdown a PC on LAN from another PC using a batch file in Windows 7


I'm just interested in knowing: can we shutdown a PC from another PC using a batch file if both are on the same LAN?


Solution

  • Yes, you can use the /m switch for shutdown like this

    shutdown /s /m \\computer1 /t 0