1.断开网络连接
.NET目前尚不支持RAS2、重新启动计算机确定一下你有权力重启, 试试
try
{
    System.Management.ManagementScope ms = new
System.Management.ManagementScope(\\\\LocalHost\\root\\cimv2);
    ms.Options.EnablePrivileges = true;
    //Query remote computer across the connection
    System.Management.ObjectQuery oq = new
System.Management.ObjectQuery("SELECT * FROM Win32_OperatingSystem");    ManagementObjectSearcher query1 = new ManagementObjectSearcher(ms,oq);
    ManagementObjectCollection queryCollection1 = query1.Get();    foreach( ManagementObject mo in queryCollection1 )
    {
        string[] ss={"2","0"};
        mo.InvokeMethod("Win32Shutdown",ss);
        Console.WriteLine(mo.ToString());
     }
}
catch( Exception ex )
{
    Console.WriteLine( ex.Message ) ;
}或
http://www.c-sharpcorner.com/3/RebootingRemoteServerWithWMIJOD.asp