by Gary_Berg on Wed Aug 19, 2009 12:40 pm
I've attached a zipped version of the PollSOSOS main.vb file. I will warn you that it's a major hack. Basically I build a list of systems in the OU (your code), then I build a list of all systems which I've seen within my date threshold (so these are newer systems). I then go through the OU-generated list and zap anything that's in my list of newer systems, and so the result is a list of systems I've not seen in at least xxx days.
As for provider errors, I'm getting this when trying to poke an NT4 system (which probably pre-dates WMI, so it makes sense):
PCName: xxxxx_1
RemoteFrom: xxxxx
UserName: xxxxxx
Date: 8/19/2009 7:00:30 AM
Version: PollSOSOS v3.2.0.1 (v2.0.50727)
Table: Initialize
DetailLevel: Errors
Exception: System.Runtime.InteropServices.COMException
Error: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Location: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementScope.Connect()
at PollSOSOS.Snoop.GetInitialData()
at PollSOSOS.Snoop..ctor(String PC_Name, SOSOSDataSet SOSOSds)
at PollSOSOS.Main.Doit(Object State)
I get a "Class not Registered" error on poking at one system, which is running UPS Worldship:
PCName: UPS
RemoteFrom: XXXXX
UserName: XXXX
Date: 8/19/2009 7:00:12 AM
Version: PollSOSOS v3.2.0.1 (v2.0.50727)
Table: Initialize
DetailLevel: Errors
Exception: System.Runtime.InteropServices.COMException
Error: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Location: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementScope.Connect()
at PollSOSOS.Snoop.GetInitialData()
at PollSOSOS.Snoop..ctor(String PC_Name, SOSOSDataSet SOSOSds)
at PollSOSOS.Main.Doit(Object State)
And I see "Provider Failures" errors like this:
PCName: XXXXXX
RemoteFrom: XXXXX
UserName: XXXXX
Date: 8/18/2009 5:00:23 PM
Version: PollSOSOS v3.2.0.1 (v2.0.50727)
Table: Initialize
DetailLevel: Errors
Exception: System.Management.ManagementException
Error: Provider failure
Location: at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
at PollSOSOS.Snoop.GetInitialData()
at PollSOSOS.Snoop..ctor(String PC_Name, SOSOSDataSet SOSOSds)
at PollSOSOS.Main.Doit(Object State)
That last item is the one that's preventing me from seeing my notebook computers as I mentioned. Hmm, the notebooks which work are Dell Inspiron 6000's, the ones that don't are Dell D620/D630's. Mostly. I just discovered an Inspiron 6000 which doesn't answer, and it has a very stripped WinXP installation on it.
Is it possible that somehow these systems don't have a WMI provider installed on them?
- Attachments
-
main.zip
- (6.28 KB) Downloaded 85 times