2013-09-27 26 views
0
ComputerName = InputBox("Enter the name of the computer you wish to query") 

winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& ComputerName &"" 

'WScript.Echo winmgmt1 

Set SNSet = GetObject(winmgmt1).InstancesOf ("Win32_BIOS") 

for each SN in SNSet 
MsgBox "The serial number for the specified computer is: " & SN.SerialNumber 
Next 

從這個我能得到我的機器的序列號,但怎樣做才能讓其他計算機的序列號在網絡中如何根據機器的主機名得到網絡中計算機的序列號?

回答

相關問題