PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 WMI problems

Reply

WMI problems

 
Thread Tools Rate Thread
Old 30-06-2005, 04:19 PM   #1
=?Utf-8?B?ZGltc2RhbGVfMDA3?=
Guest
 
Posts: n/a
Default WMI problems


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,
  Reply With Quote
Old 30-06-2005, 04:29 PM   #2
David H. Lipman
Guest
 
Posts: n/a
Default Re: WMI problems

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

--
Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm


  Reply With Quote
Old 30-06-2005, 05:32 PM   #3
=?Utf-8?B?ZGltc2RhbGVfMDA3?=
Guest
 
Posts: n/a
Default Re: WMI problems

worked like a champ...thanks!!!

"David H. Lipman" wrote:

> 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
>
> --
> Dave
> http://www.claymania.com/removal-trojan-adware.html
> http://www.ik-cs.com/got-a-virus.htm
>
>
>

  Reply With Quote
Old 30-06-2005, 06:18 PM   #4
David H. Lipman
Guest
 
Posts: n/a
Default Re: WMI problems

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

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

Excellent !

Thanx for updating the thread.

--
Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm


  Reply With Quote
Old 06-04-2007, 11:28 AM   #5
capsa
Junior Member
 
Join Date: Apr 2007
Location: Mount Crosby Qld Australia
Posts: 6
Trader Rating: (0)
Default 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
capsa is offline   Reply With Quote
Old 30-05-2008, 09:39 AM   #6
PeterBrookman
Junior Member
 
Join Date: May 2008
Posts: 1
Trader Rating: (0)
Default

Thank you Dave, Thank you Internet!
PeterBrookman is offline   Reply With Quote
Old 08-05-2009, 12:31 AM   #7
KatieC
New Member
 
Join Date: May 2009
Posts: 1
Trader Rating: (0)
Default

Thanks Dave, you saved me from a boat load of grief!
KatieC is offline   Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off