原创 C#遠程重啓計算機(轉)

首先添加對 System.Management的引用然後代碼入下:ConnectionOptions op = new ConnectionOptions ( ) ;    op.Username ="wg