How would I go about shutting down or rebooting a remote system.
A scenario can be u开发者_如何学Csed 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?
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.
Using the shutdown.exe from the command line in Windows would work, you can specify the computer name you'd like to shutdown and plenty of other options.. you could put shortcuts to these commands on the user's desktop so it would be easy for him/her to shutdown each one individually.
You could use the Win32_OperatingSystem.Shutdown
method.
精彩评论