WMI service is missing

  • Thread starter Thread starter Chuck
  • Start date Start date
C

Chuck

Hi all,
I have two Win2K Pro boxes with no installed WMI. The
directory structure is there for wbem and there are files
in repository so it was there at one time. But the WMI
service isn't listed in the list of services and running
winmgmt reports it's not installed.

Anyone have any idea how to approach and repair this?

Thanks.

Chuck
 
Hi Chuck - FWIW, Courtesy of Torgeir Bakken, MVP, about a similar post-SP2
problem:


"Try

regsvr32 %windir%\system32\atl.dll
regsvr32 %windir%\system32\netshell.dll
regsvr32 %windir%\system32\hnetcfg.dll
regsvr32 %windir%\system32\netcfgx.dll
regsvr32 %windir%\system32\netman.dll

If that doesn't fix it, a lot of good information in this one about
repairing WMI:

From: Ivan Brugiolo [MSFT] ([email protected])
Subject: Re: Windows XP WMI Reinstall
Newsgroups: microsoft.public.win32.programmer.wmi
Date: 2004-04-21 00:46:56 PST
http://groups.google.com/[email protected]"


--
Please respond in the same thread.
Regards, Jim Byrd, MS-MVP



In
 
Hi Chuck - FWIW, Courtesy of Torgeir Bakken, MVP, about a similar post-SP2
problem:


"Try

regsvr32 %windir%\system32\atl.dll
regsvr32 %windir%\system32\netshell.dll
regsvr32 %windir%\system32\hnetcfg.dll
regsvr32 %windir%\system32\netcfgx.dll
regsvr32 %windir%\system32\netman.dll

If that doesn't fix it, a lot of good information in this one about
repairing WMI:

From: Ivan Brugiolo [MSFT] ([email protected])
Subject: Re: Windows XP WMI Reinstall
Newsgroups: microsoft.public.win32.programmer.wmi
Date: 2004-04-21 00:46:56 PST
http://groups.google.com/[email protected]"

Thanks for the response Jim.

Here's an update:

Both machines are run by members of different groups and I'm trying to
find similarities between the two, but they're both pretty routine
setups. One unusual commonality I've found is they both access UNIX
servers via an X server. In one case it's thru Hummingbird Exceed and
in the other ReflectionX. But I'm not focusing on that as the culprit.

On both, tho, the errors are the same:
hnetcfg.dll doesn't exist

Running the regsvr32 command in the link you sent shows problems with:
userenv.dll
framedyn.dll
provthrd.dll
wbemupgrd.dll
winmgmtr.dll

Wherein it states: "...was loaded, but the DllRegisterServer entry
point was not found. DllRegisterServer may not be exported, or a
corrupt version of <filename.dll> may be in memory. Consider using
PView to detect and remove it."

Not sure what "PView" is but I found something called that on the net
and it shows processes but those aren't there.

Any ideas?

C.
 
HI Chuck - Well, it's not a problem area I've fooled around in before, but
an older KB - 260935 - suggests that a corrupt Repository can lead to
serious problems and in the limit shut things similarly to what you're
seeing. This was supposedly fixed as far back as SP1. Their suggestion to
install/re-install the latest SP appears to me to be well taken in your case
as well. You don't state what SP you're on; however, I think that at this
point that's what I would do, perhaps upgrading to SP4 if you aren't already
there, rather than fool around with it much. I would certainly invite
Torgeir and anyone else with a better notion to please chime in here,
though.

--
Please respond in the same thread.
Regards, Jim Byrd, MS-MVP



In
Chuck said:
Hi Chuck - FWIW, Courtesy of Torgeir Bakken, MVP, about a similar
post-SP2 problem:


"Try

regsvr32 %windir%\system32\atl.dll
regsvr32 %windir%\system32\netshell.dll
regsvr32 %windir%\system32\hnetcfg.dll
regsvr32 %windir%\system32\netcfgx.dll
regsvr32 %windir%\system32\netman.dll

If that doesn't fix it, a lot of good information in this one about
repairing WMI:

From: Ivan Brugiolo [MSFT] ([email protected])
Subject: Re: Windows XP WMI Reinstall
Newsgroups: microsoft.public.win32.programmer.wmi
Date: 2004-04-21 00:46:56 PST
http://groups.google.com/[email protected]"

Thanks for the response Jim.

Here's an update:

Both machines are run by members of different groups and I'm trying to
find similarities between the two, but they're both pretty routine
setups. One unusual commonality I've found is they both access UNIX
servers via an X server. In one case it's thru Hummingbird Exceed and
in the other ReflectionX. But I'm not focusing on that as the culprit.

On both, tho, the errors are the same:
hnetcfg.dll doesn't exist

Running the regsvr32 command in the link you sent shows problems with:
userenv.dll
framedyn.dll
provthrd.dll
wbemupgrd.dll
winmgmtr.dll

Wherein it states: "...was loaded, but the DllRegisterServer entry
point was not found. DllRegisterServer may not be exported, or a
corrupt version of <filename.dll> may be in memory. Consider using
PView to detect and remove it."

Not sure what "PView" is but I found something called that on the net
and it shows processes but those aren't there.

Any ideas?

C.
 
Sorry, both machines are fully patched. I did try reinstalling SP4 on
one and it didn't help.

Right now this isn't a show-stopper...yet. It was discovered when I
was trying to push SMS2003 advanced clients to them as part of our
preproduction phase. The users had been unaware there was a problem.
These are the first two problems of 64 machines already installed, but
if it indicates a possible problem I may see down the road (~2000 to
go!), I need a better solution than reinstalling the OS.

Thanks for any help.

C.
 
Hello,

Thank you for posting.

I understand that the WMI Service is missing but the wbem folder structure
is present in the system.

Please try one of the following suggestions:

Suggestion 1:

To reinstall WMI into the registry:

1. Click on start -> run -> type CMD and click on OK
2. Please type each of these commands and press enter after each line:

a) winmgmt/clearadap
b) winmgmt/kill
c) winmgmt/unregserver
d) winmgmt/regserver
e) winmgmt/resyncperf

Suggestion 2: Export the WinMgmt key from a working system into the
affected system.

This suggestion involves editing the registry.

WARNING: Using Registry Editor incorrectly can cause serious problems that
may require you to reinstall Windows. Microsoft cannot guarantee that
problems resulting from the incorrect use of Registry Editor can be solved.
Use Registry Editor at your own risk.

Note: Please backup the registry before proceeding with the steps below.

From a working system, perform the export.

1. Click on start -> run -> type "regedit" without quotes and click on OK.
2. In registry editor window, navigate to:

Hkey_Local_Machine\System\CurrentControlSet\Services\WinMgmt.

3. Export the above registry key from a functioning system and import into
the registry of nonfunctioning system.
4. If this does not resolve the issue, we will have to perform an in-place
upgrade.

For additional information see:

Q292175 How to Perform an In-Place Upgrade of Windows 2000
http://support.microsoft.com/default.aspx?scid=kb;[LN];292175

Backing up and Restoring the Windows 2000 Registry
http://www.microsoft.com/windows2000/techinfo/reskit/en-us/default.asp?url=/
windows2000/techinfo/reskit/en-us/regentry/RegistryBackup.asp

I hope the above information helps to resolve your issue. If there is
anything unclear, please feel free to let me know. Thank you and have a
nice day!

Rashmi

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Chuck" <[email protected]>
| Sender: "Chuck" <[email protected]>
| Subject: WMI service is missing
| Date: Sat, 2 Oct 2004 00:17:25 -0700
| Lines: 12
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| thread-index: AcSoT95GGEU2EzFJTO2iBgny+NivbA==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.win2000.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.win2000.general:158087
| NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
| X-Tomcat-NG: microsoft.public.win2000.general
|
| Hi all,
| I have two Win2K Pro boxes with no installed WMI. The
| directory structure is there for wbem and there are files
| in repository so it was there at one time. But the WMI
| service isn't listed in the list of services and running
| winmgmt reports it's not installed.
|
| Anyone have any idea how to approach and repair this?
|
| Thanks.
|
| Chuck
|
 
Bingo!
Thanks guys. The registry transplant and a reboot did it and the SMS
agents are installed. I only regret that I didn't preserve one of the
old keys for comparison to see what was clobbered.

Thanks again.

C.

Hello,

Thank you for posting.

I understand that the WMI Service is missing but the wbem folder structure
is present in the system.

Please try one of the following suggestions:

Suggestion 1:

To reinstall WMI into the registry:

1. Click on start -> run -> type CMD and click on OK
2. Please type each of these commands and press enter after each line:

a) winmgmt/clearadap
b) winmgmt/kill
c) winmgmt/unregserver
d) winmgmt/regserver
e) winmgmt/resyncperf

Suggestion 2: Export the WinMgmt key from a working system into the
affected system.

This suggestion involves editing the registry.

WARNING: Using Registry Editor incorrectly can cause serious problems that
may require you to reinstall Windows. Microsoft cannot guarantee that
problems resulting from the incorrect use of Registry Editor can be solved.
Use Registry Editor at your own risk.

Note: Please backup the registry before proceeding with the steps below.

From a working system, perform the export.

1. Click on start -> run -> type "regedit" without quotes and click on OK.
2. In registry editor window, navigate to:

Hkey_Local_Machine\System\CurrentControlSet\Services\WinMgmt.

3. Export the above registry key from a functioning system and import into
the registry of nonfunctioning system.
4. If this does not resolve the issue, we will have to perform an in-place
upgrade.

For additional information see:

Q292175 How to Perform an In-Place Upgrade of Windows 2000
http://support.microsoft.com/default.aspx?scid=kb;[LN];292175

Backing up and Restoring the Windows 2000 Registry
http://www.microsoft.com/windows2000/techinfo/reskit/en-us/default.asp?url=/
windows2000/techinfo/reskit/en-us/regentry/RegistryBackup.asp

I hope the above information helps to resolve your issue. If there is
anything unclear, please feel free to let me know. Thank you and have a
nice day!

Rashmi

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Chuck" <[email protected]>
| Sender: "Chuck" <[email protected]>
| Subject: WMI service is missing
| Date: Sat, 2 Oct 2004 00:17:25 -0700
| Lines: 12
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| thread-index: AcSoT95GGEU2EzFJTO2iBgny+NivbA==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.win2000.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.win2000.general:158087
| NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
| X-Tomcat-NG: microsoft.public.win2000.general
|
| Hi all,
| I have two Win2K Pro boxes with no installed WMI. The
| directory structure is there for wbem and there are files
| in repository so it was there at one time. But the WMI
| service isn't listed in the list of services and running
| winmgmt reports it's not installed.
|
| Anyone have any idea how to approach and repair this?
|
| Thanks.
|
| Chuck
|
 
Back
Top