import wmi_client_wrapper as wmi
wmic = wmi.WmiClientWrapper(
username="Administrator",
password="password",
host="192.168.1.149",
)
output = wmic.query("SELECT * FROM Win32_Processor")
可以的。代码如下://获取CPU序列号
function getCpuSN()
{
$return_arry = array()
@exec("wmic cpu get processorid", $return_arry)
$cpu_sn = $return_arry[1]
return $cpu_sn
}
本代码来自 一棵随风倒的小小草 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/hnllc2012/article/details/48733887?utm_source=copy
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)