WMI problems


G

Guest

i'm running win2k server and for quite some time the WMI has been hosed up on
the server. when i right click on wmi and go to properties, it doesn't let
me go to any other tabs but general and i can click on the change button to
enter in a different username. the general tab does display this error:

Failed to connect to <local computer>
because "WMI: Initialization failure"

anyone have a clue what's causing this? i've tryed entering domain admin
account, local admin account, etc...still comes up with the same error.

thanks,
 
Ad

Advertisements

D

David H. Lipman

From: "dimsdale_007" <dimsdale007@discussions.microsoft.com>

| i'm running win2k server and for quite some time the WMI has been hosed up on
| the server. when i right click on wmi and go to properties, it doesn't let
| me go to any other tabs but general and i can click on the change button to
| enter in a different username. the general tab does display this error:
|
| Failed to connect to <local computer>
| because "WMI: Initialization failure"
|
| anyone have a clue what's causing this? i've tryed entering domain admin
| account, local admin account, etc...still comes up with the same error.
|
| thanks,

Create a FIXWMI.CMD batch file from the below script and run it and see if this corrects
your problem.

FIXWMI.CMD
------------------------

@echo on
cd /d c:\temp
if not exist %windir%\system32\wbem goto TryInstall
cd /d %windir%\system32\wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak
for %%i in (*.dll) do RegSvr32 -s %%i
for %%i in (*.exe) do call :FixSrv %%i
for %%i in (*.mof,*.mfl) do Mofcomp %%i
net start winmgmt
goto End

:FixSrv
if /I (%1) == (wbemcntl.exe) goto SkipSrv
if /I (%1) == (wbemtest.exe) goto SkipSrv
if /I (%1) == (mofcomp.exe) goto SkipSrv
%1 /RegServer

:SkipSrv
goto End

:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End
 
D

David H. Lipman

From: "dimsdale_007" <dimsdale007@discussions.microsoft.com>

| worked like a champ...thanks!!!
|

Excellent !

Thanx for updating the thread.
 
Joined
Apr 6, 2007
Messages
6
Reaction score
0
WMI Initialisation Failure

Dave,
You saved what hair I have left. I had a WMI failure and I thought I had tried everything but I used your batch code and my problem is fixed. I'll be back and thanks again.
CAPSA
 
Ad

Advertisements

Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

WMI counters 3
WMI Repository 0
WMI Failure 9
WMI rights 0
WMI Generic Failure 0
WMI locking files 0
WMI Failed to connect 2
WMI - Access denied? 1

Top