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
If the remote computer is a Windows box you can use WMI (Windows Management Instrumentation).
http://msdn.microsoft.com/en-us/library/aa394582.aspx
Use the Reboot() method of the Win32_OperatingSystem class. You could do this for example using Windows Script, C#, VB .net