Solved

WMI Service missing, need installing

Posted on 2011-03-23
4
2,286 Views
Last Modified: 2012-05-11
I P2V'd a Win2k server.
I upgraded it to Win2k3.
I tried to install sql 2008 express but it failed as the WMI service was missing.
I tried to install the wmiprvse.exe as a service from the c:\winnt\system32\wbem folder.
Is there an easy way of doing this? I have tried all sorts :)

Thankyou in advance.

0
Comment
Question by:Sarah_Smith
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
Azhrei1 earned 500 total points
ID: 35196993
repair WMI :)

put this in a batch file, and run it with admin privileges:

@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
0
 
LVL 9

Expert Comment

by:Chev_PCN
ID: 35197082
Use the add / remove programs, select add / remove Windows components, drill down (details) on the monitoring & management tools & tick SNMP & the WMI SNMP provider.
0
 
LVL 1

Author Closing Comment

by:Sarah_Smith
ID: 35197109
You da man!!!! thanks it worked... :)
0
 
LVL 6

Expert Comment

by:Azhrei1
ID: 35197164
glad to be of service :)
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question