The script pasted below finds and echo's the Description field within Win32_BIOS in WMI.
I'm trying to find the significance of "objOS".
Anyone have a quick and simple answer for me?
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\Cimv2")
Set colBIOS = objWMIService.ExecQuery("Select Description from Win32_BIOS")
For Each objOS in colBIOS
Wscript.Echo "Computer Name: " & objOS.Description
Next
I'm trying to find the significance of "objOS".
Anyone have a quick and simple answer for me?
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\Cimv2")
Set colBIOS = objWMIService.ExecQuery("Select Description from Win32_BIOS")
For Each objOS in colBIOS
Wscript.Echo "Computer Name: " & objOS.Description
Next