如何使用Linux框中的IP地址获取Windows用户名详细信息

我只是使用以下几行来在Windows中获取用户名,效果很好

Windows:

   wmic.exe /node:"192.168.128.210" ComputerSystem Get username

输出:

  username AMAZ/arrchanaMohan

我只希望在Linux框中有一个等效命令,该命令将提供如上所述的username详细信息。

我刚刚登录linux框并ping上面的IP地址,该IP地址返回了响应。

 ping 192.168.128.210
 PING 192.168.128.210 (192.168.128.210) 44(34) bytes of data.
 64 bytes from 192.168.128.210: icmp_seq=1 ttl=145 time=258 ms
 64 bytes from 192.168.128.210: icmp_seq=2 ttl=145 time=258 ms
 64 bytes from 192.168.128.210: icmp_seq=3 ttl=145 time=257 ms
 64 bytes from 192.168.128.210: icmp_seq=4 ttl=145 time=257 ms

有人可以帮助我实现这一目标吗?

hopehappy502 回答:如何使用Linux框中的IP地址获取Windows用户名详细信息

我不太了解您的问题。要获取用户名,可以键入whoamiid命令。要查看您的IP地址,您可以输入ip a

本文链接:https://www.f2er.com/2696620.html

大家都在问