获取客户端系统硬盘序列号

本文关键字:硬盘 序列号 端系统 客户端 客户 获取 | 更新日期: 2023-09-27 18:13:49

我正在使用c# .net,asp.net和。net框架2。如何使用javascript或asp.net获取客户端系统硬盘序列号?

Thanks in advance

获取客户端系统硬盘序列号

获取Asif Ali的Client机器信息

var strComputer = ".";
var SWBemlocator = new ActiveXObject("WbemScripting.SWbemLocator");
var objWMIService = SWBemlocator.ConnectServer(strComputer, "/root/CIMV2");
var strProcess;
var colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystem");
var e = new Enumerator(colItems);
for(; ! e.atEnd(); e.moveNext())
{
  strProcess += "itema "+ e.item().Name + "<br>'n";
}
colItems = 
      objWMIService.ExecQuery("Select * from    Win32_NetworkAdapterConfiguration
      where IPEnabled=true");
e = new Enumerator(colItems);
for(; ! e.atEnd(); e.moveNext())
{
  strProcess += "itemb "+ e.item().Name + "<br>'n";
}
document.getElementById('sys_info').innerHTML = strProcess;