如何从命令行检查谁当前登录到Windows工作站?

环境在域中,服务器是 Windows Server 2003,工作站安装了Vista和XP.
我需要远程检查当前登录工作站的人,最好是从一些简单的命令行,没有sysinternals或第三方程序.

谢谢

见这里: https://web.archive.org/web/1/http://techrepublic%2ecom%2ecom/5208-7343-0.html?forumID=101&threadID=307918&messageID=3065346

他们建议Windows上可用的wmic命令:

WMIC /NODE: xxx.xxx.xxx.xxx
COmpuTERSYstem GET USERNAME Will
return the username currently logged
into xxx.xxx.xxx.xxx

or WMIC /NODE: “workstation_name” COmpuTERSYstem GET USERNAME will return the username currently logged into “workstation_name”

相关文章

Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...
Windows文件操作基础代码 Windows下对文件进行操作使用的一段...
Winpcap基础代码 使用Winpcap进行网络数据的截获和发送都需要...
使用vbs脚本进行批量编码转换 最近需要使用SourceInsight查看...