We use ScriptLogic's Desktop Authority (DA) to collect the hardware and software inventory of all of our PCs on the network. All of our PCs run Windows 7 (x64) with SP1. DA is only showing inventory for a small percentage of our PCs. DA uses WMI to collect the inventory. Their tech support is insisting that the problem is rooted in WMI not working on the PCs that DA is not reporting on. However, I have run multiple .VBS and Powershell scripts with WMI commands that are able to see the WMI data without issue. As a troubleshooting step, tech support asked me to run the Win32_SystemEnclosure script from Scriptomatic 2.0 on one of the problem PCs. When I do this, I get the following output:
But if I copy/paste this same script from Scriptomatic and create a .VBS file and run it from an elevated cmd prompt, I get the expected output:
Caption: System Enclosure
Description: System Enclosure
Manufacturer: Dell Inc.
Name: System Enclosure
Tag: System Enclosure 0
From these tests, I've concluded that there isn't anything wrong with WMI per se but it appears that when a VB script is launched from a Window in Windows 7, that it doesn't have the ability to tie into WMI properly. BTW, I am running Scriptomatic as an administrator when it fails to return the correct results. Does anyone know how to get these scripts to run from the Scriptomatic window (or what would be preventing it from running properly in this case)? Thaniks