I want to shut down a remote Windows computer (ex. a Windows computer connected in LAN.) I have tried a lot but I could not find the solution. Does anyone have an idea on how to
Assuming a windows box.
In VB.NET or c#
Process.Start("shutdown","-s -m \\Machine");
Should do the trick.
See
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx
http://www.ss64.com/nt/shutdown.html
EDIT: Note - shutdown.exe was only available in Resource Kits prior to Windows 2003