I'm trying to run some commands based on OS and x86 vs. x64. When running the below code the variable remains blank. I can echo the output and see the query and property seem to be correct. Any idea why that string isn't being assigned tot he variable named osbit
?
strOSbit = "SELECT * FROM Win32_Processor"
Set colItems = objWMIService.ExecQuery(strOSbit, "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
Set osbit = objItem.AddressWidth
Next