Is there a way to determine who is logged on to a particular (remote) machine given the IP address (or the workstation name) of the machine?
在给定机器的IP地址(或工作站名称)的情况下,有没有办法确定谁登录到特定(远程)机器?
- The machines in question are on an Active Directory Domain
- The user running the script probably won't have any special rights on either their local or the remote machine
- Operating system is Windows XP
有问题的计算机位于Active Directory域中
运行脚本的用户可能对本地或远程计算机没有任何特殊权限
操作系统是Windows XP
Any programming language is fine but ideally
任何编程语言都很好,但理想情况下
- VBScript (yeah I know)
- C#
- Java
- DOS Batch file
VBScript(是的,我知道)
DOS批处理文件
3 个解决方案
#1
3
PSloggedon from SysInternals will provide this from a batch file, however the user would require admin access on the remote machine. I doubt you can get this information without Administrator access.
来自SysInternals的PSloggedon将从批处理文件中提供此信息,但是用户需要远程计算机上的管理员访问权限。我怀疑你没有管理员访问权限就可以获得这些信息
#2
0
Difficult to do depending on the permissioning on the machine. One way is to query WMI on the remote machine and check the owner of the explorer.exe process.
根据机器的许可很难做到。一种方法是在远程计算机上查询WMI并检查explorer.exe进程的所有者。
#3
0
You don't need admin access. Just use net apis. ask on news://194.177.96.26/comp.os.ms-windows.programmer.win32 where it's a FAQ
您不需要管理员权限。只需使用net apis。询问新闻://194.177.96.26/comp.os.ms-windows.programmer.win32这是一个常见问题
#1
3
PSloggedon from SysInternals will provide this from a batch file, however the user would require admin access on the remote machine. I doubt you can get this information without Administrator access.
来自SysInternals的PSloggedon将从批处理文件中提供此信息,但是用户需要远程计算机上的管理员访问权限。我怀疑你没有管理员访问权限就可以获得这些信息
#2
0
Difficult to do depending on the permissioning on the machine. One way is to query WMI on the remote machine and check the owner of the explorer.exe process.
根据机器的许可很难做到。一种方法是在远程计算机上查询WMI并检查explorer.exe进程的所有者。
#3
0
You don't need admin access. Just use net apis. ask on news://194.177.96.26/comp.os.ms-windows.programmer.win32 where it's a FAQ
您不需要管理员权限。只需使用net apis。询问新闻://194.177.96.26/comp.os.ms-windows.programmer.win32这是一个常见问题