远程开机:
参考链接: https://blog.csdn.net/wangshubo1989/article/details/48286383
远程关机:
参考链接: https://blog.csdn.net/msst1234/article/details/79567728
C# WPF程序。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Net.Sockets;
using System.Net;
using System.Globalization;
namespace WpfRemoteControl
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public