Discussion:
WMI (error 4200)
(too old to reply)
L***@excite.com
2004-08-04 21:49:42 UTC
Permalink
All WMI I try fail with "can't create objects" (but run perfectly on other
servers). Reinstalling WMI doesn't change anything. I've tried a number of
things (and am now out of ideas) and
everything is reported below.

I also get this error from WMI when trying to install the latest SQL 2005
beta (the beta newsgroups suggestions did not help so I went here):
[quote]
The SQL Server System Configuration Checker cannot be
executed due to WMI
configuration on the machine {server} Error:2148007941
(0x80080005).

For help, click:
http://go.microsoft.com/fwlink?
LinkID=20476&ProdName=Microsoft%20SQL%
20Server&ProdVer=9.00.852&EvtSrc=setup.rll&EvtID=50042
[/quote]

The link doesn't provide any help at all about the
problem, its source, or
anything that may help identify and solve it.
So I searched around and found
lots of 4200 errors in the C:\WINDOWS\system32
\WBEM\Logs\wmiprov.log

[quote]
(...)
(Thu Jun 03 18:28:16 2004.131921) : WDM call returned
error: 4200
(Thu Jun 03 18:31:16 2004.311906) : WDM call returned
error: 4200
(Mon Jun 07 08:41:03 2004.310503906) : Received Event
(Tue Jun 15 19:24:59 2004.120953) : WDM call returned
error: 4200
(Tue Jun 15 19:28:02 2004.309093) : WDM call returned
error: 4200
(Mon Jun 28 11:11:52 2004.1093753593) : Received Event
(Mon Jul 26 08:55:27 2004.121984) : WDM call returned
error: 4200
(Mon Jul 26 08:58:36 2004.310625) : WDM call returned
error: 4200
(Mon Jul 26 10:41:35 2004.6518125) : Received Event
(Tue Jul 27 15:35:37 2004.110560734) : Received Event
(Tue Jul 27 15:35:39 2004.110563078) : Received Event(...)
[/quote]

So I went checked WMI properties in Computer Management/Services and
Application/WMI Control and the General tab showed:

[quote]
Failed to initialize all required WMI classes

Win32_Processors: Windows: Server execution failed
Win32_WMISetting: Successful
Security information: Successful
Win32_OperatingSystem: Windows: Server execution failed
[/quote]

The event log also has this error:
[quote]
The server {73E709EA-5D93-4B2E-BBB0-99B7938DA9E4} did not
register with DCOM within the required timeout.
[/quote]
which I tracked down to "Microsoft WMI Provider Subsystem Host" in the
registry.

I checked RPC (seems to work), and I also (suggestion from the beta
Mofcomp.exe %windir%\system32\wbem\cimwin32.mof
Regsvr32 wbemupgd.dll
regsvr32 wbemsvc.dll
It did not work either and "Regsvr32 wbemupgd.dll" seemed to take forever
(3-4 minutes). WMI services are started of course. I also tried adding
NETWORK SERVICE and LOCAL SERVICE to "Impersonate a client after
authentication" in the local policies.

I don't know what to try next:-(
It's a Windows 2003 Server with all the latest patches. 2 cpu, 2gigs of RAM,
lots of disk space.

Anybody have a clue?

Eric
Gary Chang
2004-08-05 09:58:05 UTC
Permalink
Hi Eric,

Do you have enough permission to execute your WMI calls in the current
machine and did those calls fail on other Wondows 2003 machines?

By the way, I suggest you can use the "wbemtest" to test, does it also
failed?


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
L***@excite.com
2004-08-05 12:53:38 UTC
Permalink
Thanks for replying Gary!


I'm local admin and have sufficient domain priviledges. The same calls work
with the same user on a different server. Some very basic scripts fail on
this server but works everywhere else. Here's an example:

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set IPConfigSet = objWMIService.ExecQuery _
("Select IPAddress from Win32_NetworkAdapterConfiguration where
IPEnabled=TRUE")
For Each IPConfig in IPConfigSet
If Not IsNull(IPConfig.IPAddress) Then
For i=LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress)
WScript.Echo IPConfig.IPAddress(i)
Next
End If
Next

The error is always "can't create activex object"
Post by Gary Chang
By the way, I suggest you can use the "wbemtest" to test, does it also
failed?
I can connect, but that's all. However, I'm don't know much about WMI and
even less about wbemtest.

Eric
Post by Gary Chang
Hi Eric,
Do you have enough permission to execute your WMI calls in the current
machine and did those calls fail on other Wondows 2003 machines?
By the way, I suggest you can use the "wbemtest" to test, does it also
failed?
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Gary Chang
2004-08-06 05:12:06 UTC
Permalink
Hi Eric,
Post by L***@excite.com
The error is always "can't create activex object"
It sounds like a script running error more that a WMI related error, have
the WMI calls failed in the current Windows 2003 server from the beginnig?

So does that Win 2K3 machine have some setting or installed any anti-virus
system that will block running the script?


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
L***@excite.com
2004-08-06 14:15:29 UTC
Permalink
Hi Gary,
Post by Gary Chang
Hi Eric,
Post by L***@excite.com
The error is always "can't create activex object"
It sounds like a script running error more that a WMI related error, have
the WMI calls failed in the current Windows 2003 server from the beginnig?
No. It used to work. It seemed the problems started at about the same time
the SQLDebugger also started failing. So I though it might be related to RPC
and/or permissions but I haven't been able to pinpoint the problem.
Unfortunatly, It's not a server I can afford to reinstall right now (I'm not
long enough at the same place to do it). So I'm trying to find the solution.
Post by Gary Chang
So does that Win 2K3 machine have some setting or installed any anti-virus
system that will block running the script?
It does have an anti-virus. But the same problem occurs if I stop the
anti-virus. Also, there is no problems on any other servers and they all
have norton with the same config.
Post by Gary Chang
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Gary Chang
2004-08-07 07:36:07 UTC
Permalink
Hi Eric,
Post by L***@excite.com
No. It used to work. It seemed the problems started at about the same time
the SQLDebugger also started failing
Do you mean the WMI call fails after you installed the SQL Server 2005 beta
or something else?


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
L***@excite.com
2004-08-08 01:28:51 UTC
Permalink
Post by Gary Chang
Hi Eric,
Post by L***@excite.com
No. It used to work. It seemed the problems started at about the same time
the SQLDebugger also started failing
Do you mean the WMI call fails after you installed the SQL Server 2005 beta
or something else?
Something else:

a) the SQL 2000 debugger doesn't work anymore on this server. Haven't been
able to fix it. I wonder if it is the same cause.

b) The SQL 2005 beta 2 installer doesn't work on this server. Won't install
because of a WMI error:

[snip]
The SQL Server System Configuration Checker cannot be
executed due to WMI
configuration on the machine {server} Error:2148007941
(0x80080005).
[snip]

I mentionned it because this error migth provide a lead to the WMI error
since it refers to a WMI configuration problem with error 2148007941. I
haven't found any info on this error. The SQL 2005 beta newsgroup could not
help on this.

Eric
Gary Chang
2004-08-10 08:17:09 UTC
Permalink
Hi Eric

I consulted your problem with our WMI guys, they think it may be a problem
associated with upgrading Windows Server 2003 to Service pack 1 build 1207
. You can try to install SP1 build 1218 or later.


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
L***@excite.com
2004-08-10 13:31:53 UTC
Permalink
Hi Gary,


I'm confused. Windows 2003 SP1??? This service pack does not exists yet (or
possibly only in beta). I have all the latest updates on this server but not
any beta service pack.

Do you mean the WMI guys think this particular problem would be solved by
applying this beta SP? If yes, where do I get it? (it's not on msdn
subscriber's downloads). And can it be uninstalled if necessary?

regards,

Eric
Post by Gary Chang
Hi Eric
I consulted your problem with our WMI guys, they think it may be a problem
associated with upgrading Windows Server 2003 to Service pack 1 build 1207
You can try to install SP1 build 1218 or later.
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Gary Chang
2004-08-11 09:24:37 UTC
Permalink
Hi Eric,

Since the problem is similar to some builds of Windows 2003 Server SP1
caused one, so we suggest you can use the "WINVER" command to check the
build version of your Windows 2003 Server first.


Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
L***@excite.com
2004-08-11 12:47:11 UTC
Permalink
Hi Gary,

Version 5.2 (Build 3790.srv03_rtm.030324-2048)


regards,

Eric
Post by Gary Chang
Hi Eric,
Since the problem is similar to some builds of Windows 2003 Server SP1
caused one, so we suggest you can use the "WINVER" command to check the
build version of your Windows 2003 Server first.
Thanks for your understanding!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Yan-Hong Huang[MSFT]
2004-08-12 07:44:35 UTC
Permalink
Hello Eric,

Gary discussed it with me. Currently we are involving WMI support engineer
on it. We will reply here with more information as soon as possible.

If you have any more concerns on it, please feel free to post here. Thanks
very much.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! šC www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
L***@excite.com
2004-08-12 13:53:18 UTC
Permalink
Thank you,


If I can help by supplying any additional info about the environment/OS,
just ask.


Regards,

Eric
Post by Yan-Hong Huang[MSFT]
Hello Eric,
Gary discussed it with me. Currently we are involving WMI support engineer
on it. We will reply here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here. Thanks
very much.
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! šC www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.
as
Post by Yan-Hong Huang[MSFT]
p&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.
Yan-Hong Huang[MSFT]
2004-08-13 01:47:20 UTC
Permalink
Hi Eric,

Yes, we need some information for further troubleshoot. Please refer to the
following action plan:

Action Plan:
==========

1) To help us trouble shoot this issue please download the Microsoft
Product Support Reporting tool from the link below:

http://download.microsoft.com/download/b/b/1/bb139fcb-4aac-4fe5-a579-30b0bd9
15706/MPSRPT_SETUPPerf.EXE

This information will help us to determine what factors are involved with
the issue(s) we are experiencing with your system.

The MPS utility will take about 5 to 15 minutes to gather information. This
can be run at any time and will utilize minimal processor time and memory
and is quite unobtrusive to clients currently accessing the server.

It is required that the currently logged on user have Administrative rights
in order to allow for proper operations of the MPS Reporting Tool.

If you have any questions regarding the usage or operations of the MPS
Reporting Tool please review the link below:
http://download.microsoft.com/download/b/b/1/bb139fcb-4aac-4fe5-a579-30b0bd9
15706/MPSRPT_SetupPerf_Readme.txt

DIRECTORY STRUCTURE:
========================
%SystemRoot%\MPSReports---|
|-- Setup --|
|--
Bin --|

|-- Reports--|

|-- Cab


ADDITIONAL INFORMATION:
=======================
On your system a CAB file will be generated for your convenience in the
%systemroot%\MPSReports\Setup\<Report Type>\Cab directory called:

%COMPUTERNAME%_MPSReports.CAB.

The CAB file will contain the reports generated by the MPS Reporting Tool.
Please email me back the cab file.

All Other MPS Reports available:
==========================
http://microsoft.com/downloads/details.aspx?FamilyId=CEBF3C7C-7CA5-408F-88B7
-F9C79B7306C0&displaylang=en&MSCOMTB=ICP_Quick|MPS%20Reports%20external


2) From Start\Up type: wmimgmt.msc
Right click and open the properties.
Send me a screenshot

3) Import the WBEM Registry key from a working server.
NOTE: First, save the existing Wbem key to be safe.

Regkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM


4) Remove repository after Backuping WMI repository

To Clear out WMI Repository (might provide temporarily relief if WMI fails
to initialize)

NET STOP WINMGMT
Copy the folder %windir%\system32\wbem\Repository to a different folder.
rename (or delete) %windir%\system32\wbem\Repository
NET START WINMGMT

To restore WMI repository
NET STOP WINMGMT
Copy the backup back to %windir%\system32\wbem\Repository
NET START WINMGMT

For the cab file, you can email it to ***@online.microsoft.com and cc me.
(please remove online to reach him) He will help you directly on it.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! šC www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
L***@excite.com
2004-08-13 05:47:04 UTC
Permalink
Hi,

I'll spend the next 10 hours in planes. I'll be able to send you the cab and
screen pics monday only.

Thanks a lot.

Eric
Post by Gary Chang
Hi Eric,
Yes, we need some information for further troubleshoot. Please refer to the
==========
1) To help us trouble shoot this issue please download the Microsoft
http://download.microsoft.com/download/b/b/1/bb139fcb-4aac-4fe5-a579-30b0bd9
Post by Gary Chang
15706/MPSRPT_SETUPPerf.EXE
This information will help us to determine what factors are involved with
the issue(s) we are experiencing with your system.
The MPS utility will take about 5 to 15 minutes to gather information. This
can be run at any time and will utilize minimal processor time and memory
and is quite unobtrusive to clients currently accessing the server.
It is required that the currently logged on user have Administrative rights
in order to allow for proper operations of the MPS Reporting Tool.
If you have any questions regarding the usage or operations of the MPS
http://download.microsoft.com/download/b/b/1/bb139fcb-4aac-4fe5-a579-30b0bd9
Post by Gary Chang
15706/MPSRPT_SetupPerf_Readme.txt
========================
%SystemRoot%\MPSReports---|
|-- Setup --|
|--
Bin --|
|-- Reports--|
|-- Cab
=======================
On your system a CAB file will be generated for your convenience in the
%COMPUTERNAME%_MPSReports.CAB.
The CAB file will contain the reports generated by the MPS Reporting Tool.
Please email me back the cab file.
==========================
http://microsoft.com/downloads/details.aspx?FamilyId=CEBF3C7C-7CA5-408F-88B7
Post by Gary Chang
-F9C79B7306C0&displaylang=en&MSCOMTB=ICP_Quick|MPS%20Reports%20external
2) From Start\Up type: wmimgmt.msc
Right click and open the properties.
Send me a screenshot
3) Import the WBEM Registry key from a working server.
NOTE: First, save the existing Wbem key to be safe.
Regkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM
4) Remove repository after Backuping WMI repository
To Clear out WMI Repository (might provide temporarily relief if WMI fails
to initialize)
NET STOP WINMGMT
Copy the folder %windir%\system32\wbem\Repository to a different folder.
rename (or delete) %windir%\system32\wbem\Repository
NET START WINMGMT
To restore WMI repository
NET STOP WINMGMT
Copy the backup back to %windir%\system32\wbem\Repository
NET START WINMGMT
(please remove online to reach him) He will help you directly on it.
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! šC www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.
as
Post by Gary Chang
p&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.
L***@excite.com
2004-08-14 16:39:21 UTC
Permalink
Hi,

The info was sent.

thanks,

eric
Post by Gary Chang
Hi Eric,
Yes, we need some information for further troubleshoot. Please refer to the
==========
1) To help us trouble shoot this issue please download the Microsoft
http://download.microsoft.com/download/b/b/1/bb139fcb-4aac-4fe5-a579-30b0bd9
Post by Gary Chang
15706/MPSRPT_SETUPPerf.EXE
This information will help us to determine what factors are involved with
the issue(s) we are experiencing with your system.
The MPS utility will take about 5 to 15 minutes to gather information. This
can be run at any time and will utilize minimal processor time and memory
and is quite unobtrusive to clients currently accessing the server.
It is required that the currently logged on user have Administrative rights
in order to allow for proper operations of the MPS Reporting Tool.
If you have any questions regarding the usage or operations of the MPS
http://download.microsoft.com/download/b/b/1/bb139fcb-4aac-4fe5-a579-30b0bd9
Post by Gary Chang
15706/MPSRPT_SetupPerf_Readme.txt
========================
%SystemRoot%\MPSReports---|
|-- Setup --|
|--
Bin --|
|-- Reports--|
|-- Cab
=======================
On your system a CAB file will be generated for your convenience in the
%COMPUTERNAME%_MPSReports.CAB.
The CAB file will contain the reports generated by the MPS Reporting Tool.
Please email me back the cab file.
==========================
http://microsoft.com/downloads/details.aspx?FamilyId=CEBF3C7C-7CA5-408F-88B7
Post by Gary Chang
-F9C79B7306C0&displaylang=en&MSCOMTB=ICP_Quick|MPS%20Reports%20external
2) From Start\Up type: wmimgmt.msc
Right click and open the properties.
Send me a screenshot
3) Import the WBEM Registry key from a working server.
NOTE: First, save the existing Wbem key to be safe.
Regkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM
4) Remove repository after Backuping WMI repository
To Clear out WMI Repository (might provide temporarily relief if WMI fails
to initialize)
NET STOP WINMGMT
Copy the folder %windir%\system32\wbem\Repository to a different folder.
rename (or delete) %windir%\system32\wbem\Repository
NET START WINMGMT
To restore WMI repository
NET STOP WINMGMT
Copy the backup back to %windir%\system32\wbem\Repository
NET START WINMGMT
(please remove online to reach him) He will help you directly on it.
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! šC www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.
as
Post by Gary Chang
p&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.
Yan-Hong Huang[MSFT]
2004-08-16 05:29:09 UTC
Permalink
Hi Eric,

We have got the email and the attachment. Axel will post here with more
information as soon as possible. Thanks very much for your patience.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! šC www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Yan-Hong Huang[MSFT]
2004-08-19 01:41:58 UTC
Permalink
Hi Eric,

We are still looking into the log file. We will update here with more
information as soon as possible.

Thanks very much for your patience.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! šC www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Yan-Hong Huang[MSFT]
2004-08-20 01:36:17 UTC
Permalink
Hi Eric,

Currently we are working with one WMI expert on this issue already. :)

We will send eamil to you with new information as soon as possible. Thanks
very much.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! šC www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Gary Chang
2004-08-05 10:05:11 UTC
Permalink
Hi,

FYI: WDM error 4200 means some particular operation wasn't supported by a
driver.

Wish it helps!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
L***@excite.com
2004-08-05 12:56:02 UTC
Permalink
Post by Gary Chang
Hi,
FYI: WDM error 4200 means some particular operation wasn't supported by a
driver.
Mmm. Where did you find the info? I did a lot of searches and did not find
anything.
Post by Gary Chang
Wish it helps!
Not yet;) But it's a start.
Post by Gary Chang
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Gary Chang
2004-08-06 05:14:39 UTC
Permalink
Hi Eric,
Post by L***@excite.com
Mmm. Where did you find the info?
I consulted form the internals:
WDM error 4200 means some particular operation wasn't supported by a
driver. A particular driver may not support the ioctl sent to it. Binary
MOFs for drivers are deleted and replaced when drivers are updated.


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
L***@excite.com
2004-08-06 14:20:34 UTC
Permalink
Hi Gary,
Post by Gary Chang
Hi Eric,
Post by L***@excite.com
Mmm. Where did you find the info?
WDM error 4200 means some particular operation wasn't supported by a
driver. A particular driver may not support the ioctl sent to it. Binary
MOFs for drivers are deleted and replaced when drivers are updated.
mmm. Since I am not querying some specific hardware, which driver should I
try to update? I'm a bit in the dark here. I'm open to suggestions on this
and will try any new ideas.

Thanks,

Eric
Continue reading on narkive:
Loading...