Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- strComputer = "."
- Set objWMIService = GetObject("winmgmts:" _
- & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
- Set colBIOS = objWMIService.ExecQuery _
- ("Select * from Win32_BIOS")
- For each objBIOS in colBIOS
- Wscript.Echo "localhost = SJG0-" & objBIOS.SerialNumber
- Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement