1, 通过ping 命令,获取远程服务器ip
2, 通过qwinsta命令,获取远程服务器当前连接会话
3, 用logoff命令,把远程会话终止
示例:
转载于:https://www.cnblogs.com/BenWong/p/4012997.html