1,查看远程登录用户
query session /server [IP]
or
query user /server [IP]
2,注销远程登录用户ID
logoff sessionid /server [sessionID]
logoff user /server [userID]
3,远程重启服务器
shutdown /r /f /m \[IP]
iisreset /reboot [IP]
4,远程重启IIS:
iisreset [IP]