Search code examples
c#networkingshutdown

Shutdown a remote system?


How would I go about shutting down or rebooting a remote system.

A scenario can be used as a group of networked computers in a school room, the teacher will be able to shutdown selected systems to shutdown from their machine.

How would I be able to do this.

I have searched for a method to retrieve networked machines, but in the scenario how would this work?


Solution

  • The Microsoft SysInternals utility psShutdown will do exactly what you're looking for.

    You can use PsShutdown to initiate a shutdown of the local or a remote computer, logoff a user, lock a system, or to abort an imminent shutdown.