可以用WMI实现
csdn上有这方面的资料

解决方案 »

  1.   

    在 command prompt 下有 shutdow -s /shutdown -r 
    实现 关机,重起;
      

  2.   

    //设定生成的WMI所需的所有设置 
    System.Management.ConnectionOptions Conn = new ConnectionOptions();
    Conn.Username = txtUser.Text; //用户名 
    Conn.Password = txtPassword.Text; //口令 
    //设定用于执行WMI操作的范围  
    System.Management.ManagementScope Ms = new ManagementScope( "\\\\" + txtIP.Text + "\\root\\cimv2", Conn); 
    try 
    {
    //连接到实际操作的WMI范围
    Ms.Connect(); 
    //设定通过WMI要查询的内容 
    ObjectQuery Query = new ObjectQuery("select  *  from  win32_OperatingSystem");
    //WQL语句,设定的WMI查询内容和WMI的操作范围,检索WMI对象集合 
    ManagementObjectSearcher Searcher = new ManagementObjectSearcher(Ms, Query); 
    //异步调用WMI查询 
    ManagementObjectCollection ReturnCollection = Searcher.Get();  //*****************************远程重新启动*******************
    foreach(ManagementObject  mo  in  ReturnCollection)   
    {   
    string[]  ss={""};   
    mo.InvokeMethod("Reboot",ss);   
    }   
    //************************************************************ }
    catch(Exception ee)  

    MessageBox.Show("连接" + txtIP.Text + "出错,出错信息为:" + ee.Message, "出现错误!"); 
    }
      

  3.   

    http://www.yesky.com/SoftChannel/72342380468109312/20021118/1640321.shtml
    这个里面全都有