1、cmd命令行中使用 msg工具發送消息(發送端)msg server:(ip) * "消息內容"
2、接收端(需要打開RPC服務器 否則發送端會報錯 獲取會話名稱時的錯誤1722)打開AllowRemoteRPC方法如下win+r運行,找到"計算機HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server"把AllowRemoteRPC的值從0改為1就能接受信息了。