wmic访问在域中的计算机。其中opsadministrator为域用户名,也可以写作ops.comadministrator。ops是域名ops.com的简写,是MS的NetBIOS一套吗?
./wmic -U 192.168.0.120/ops\administrator%P@ssw0rd //192.168.0.120 "select * from Win32_ComputerSystem"
./wmic -U 192.168.0.120/ops.com\administrator%P@ssw0rd //192.168.0.120 "select * from Win32_ComputerSystem"
当然,上面的机器也可以用本机的账户而非域账户进行wmic的访问。
./wmic -U administrator%P@ssw0rd //192.168.0.120 "select * from Win32_ComputerSystem"