G
Guest
I am trying to run a Visual Basic script that will collect the serial number of a HP5700 thin client from the BIOS using WMI obeject call and I am getting an errors. Does Windows XPe support WMI calls
Below is the scrip
----------------------------------------------------------------
strComputer = ".
Set objWMIService = GetObject("winmgmts:"
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2"
MsgBox "hello
Set colBIOS = objWMIService.ExecQuery
("Select * from Win32_BIOS"
MsgBox "hello1
For Each objBIOS In colBIO
strSerialNumber = objBIOS.SerialNumbe
MsgBox strSerialNumbe
En
Next
Below is the scrip
----------------------------------------------------------------
strComputer = ".
Set objWMIService = GetObject("winmgmts:"
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2"
MsgBox "hello
Set colBIOS = objWMIService.ExecQuery
("Select * from Win32_BIOS"
MsgBox "hello1
For Each objBIOS In colBIO
strSerialNumber = objBIOS.SerialNumbe
MsgBox strSerialNumbe
En
Next