The Windows Management Instrumentation (WMI) service cannot be started . Failed


i started trubleshoting

microsoft windows [version 10.0.10586]
(c) 2015 microsoft corporation. rights reserved.
c:\windows\system32>regsvr32 [/u] [/s] <ocx file name>
syntax of command incorrect.
c:\windows\system32>run /n regsvr32 /s msmapi32.ocx
'run' not recognized internal or external command,
operable program or batch file.
c:\windows\system32>cmd /k sc qc winmgmt
[sc] queryserviceconfig success
service_name: winmgmt
        type               : 20  win32_share_process
        start_type         : 2   auto_start
        error_control      : 0   ignore
        binary_path_name   : c:\windows\system32\svchost.exe -k netsvcs
        load_order_group   :
        tag                : 0
        display_name       : windows management instrumentation
        dependencies       : rpcss
        service_start_name : localsystem
c:\windows\system32>net stop winmgmt
following services dependent on windows management instrumentation service.
stopping windows management instrumentation service stop these services.
   security center
   windows multipoint server repair service
   windows multipoint server host service
   hyper-v virtual machine management
do want continue operation? (y/n) [n]: y
security center service stopping.
security center service stopped successfully.

windows multipoint server repair service service stopped successfully.
the windows multipoint server host service service stopping.
windows multipoint server host service service stopped successfully.
the hyper-v virtual machine management service stopping........
hyper-v virtual machine management service not stopped.
system error 1051 has occurred.
a stop control has been sent service other running services dependent on.

c:\windows\system32>net start winmgmt
requested service has been started.
more available typing net helpmsg 2182.

c:\windows\system32>winmgmt  /salvagerepository
wmi repository verification failed
error code:     0x80040154
facility:       interface
description:    class not registered

c:\windows\system32>cd /d %windir%\system32\wbem
c:\windows\system32\wbem>for %i in (*.dll) regsvr32 -s %i
c:\windows\system32\wbem>regsvr32 -s appbackgroundtask.dll
c:\windows\system32\wbem>regsvr32 -s cimwin32.dll
c:\windows\system32\wbem>regsvr32 -s dmwmibridgeprov.dll
c:\windows\system32\wbem>regsvr32 -s dnsclientcim.dll
c:\windows\system32\wbem>regsvr32 -s dnsclientpsprovider.dll
c:\windows\system32\wbem>regsvr32 -s dscpspluginwkr.dll
c:\windows\system32\wbem>regsvr32 -s dsprov.dll
c:\windows\system32\wbem>regsvr32 -s embeddedlockdownwmi.dll
c:\windows\system32\wbem>regsvr32 -s esscli.dll
c:\windows\system32\wbem>regsvr32 -s eventtracingmanagement.dll
c:\windows\system32\wbem>regsvr32 -s fastprox.dll
c:\windows\system32\wbem>regsvr32 -s ipmiprr.dll
c:\windows\system32\wbem>regsvr32 -s ipmiprv.dll
c:\windows\system32\wbem>regsvr32 -s krnlprov.dll
c:\windows\system32\wbem>regsvr32 -s mdmappprov.dll
c:\windows\system32\wbem>regsvr32 -s mdmsettingsprov.dll
c:\windows\system32\wbem>regsvr32 -s mmfutil.dll
c:\windows\system32\wbem>regsvr32 -s mofd.dll
c:\windows\system32\wbem>regsvr32 -s mofinstall.dll
c:\windows\system32\wbem>regsvr32 -s msdtcwmi.dll
c:\windows\system32\wbem>regsvr32 -s msiprov.dll
c:\windows\system32\wbem>regsvr32 -s ncprov.dll
c:\windows\system32\wbem>regsvr32 -s ndisimplatcim.dll
c:\windows\system32\wbem>regsvr32 -s netadaptercim.dll
c:\windows\system32\wbem>regsvr32 -s netdacim.dll
c:\windows\system32\wbem>regsvr32 -s neteventpacketcapture.dll
c:\windows\system32\wbem>regsvr32 -s netnat.dll
c:\windows\system32\wbem>regsvr32 -s netnccim.dll
c:\windows\system32\wbem>regsvr32 -s netpeerdistcim.dll
c:\windows\system32\wbem>regsvr32 -s netswitchteamcim.dll
c:\windows\system32\wbem>regsvr32 -s nettcpip.dll
c:\windows\system32\wbem>regsvr32 -s netttcim.dll
c:\windows\system32\wbem>regsvr32 -s netwnv.dll
c:\windows\system32\wbem>regsvr32 -s nlmcim.dll
c:\windows\system32\wbem>regsvr32 -s ntevt.dll
c:\windows\system32\wbem>regsvr32 -s policman.dll
c:\windows\system32\wbem>regsvr32 -s printmanagementprovider.dll
c:\windows\system32\wbem>regsvr32 -s qoswmi.dll
c:\windows\system32\wbem>regsvr32 -s racwmiprov.dll
c:\windows\system32\wbem>regsvr32 -s repdrvfs.dll
c:\windows\system32\wbem>regsvr32 -s schedprov.dll
c:\windows\system32\wbem>regsvr32 -s servdeps.dll
c:\windows\system32\wbem>regsvr32 -s smierrsm.dll
c:\windows\system32\wbem>regsvr32 -s smierrsy.dll
c:\windows\system32\wbem>regsvr32 -s smimsgif.dll
c:\windows\system32\wbem>regsvr32 -s smtpcons.dll
c:\windows\system32\wbem>regsvr32 -s snmpcl.dll
c:\windows\system32\wbem>regsvr32 -s snmpincl.dll
c:\windows\system32\wbem>regsvr32 -s snmpsmir.dll
c:\windows\system32\wbem>regsvr32 -s snmpthrd.dll
c:\windows\system32\wbem>regsvr32 -s stdprov.dll
c:\windows\system32\wbem>regsvr32 -s vdswmi.dll
c:\windows\system32\wbem>regsvr32 -s viewprov.dll
c:\windows\system32\wbem>regsvr32 -s vpnclientpsprovider.dll
c:\windows\system32\wbem>regsvr32 -s vsswmi.dll
c:\windows\system32\wbem>regsvr32 -s wbemcntl.dll
c:\windows\system32\wbem>regsvr32 -s wbemcons.dll
c:\windows\system32\wbem>regsvr32 -s wbemcore.dll
c:\windows\system32\wbem>regsvr32 -s wbemdisp.dll
c:\windows\system32\wbem>regsvr32 -s wbemess.dll
c:\windows\system32\wbem>regsvr32 -s wbemprox.dll
c:\windows\system32\wbem>regsvr32 -s wbemsvc.dll
c:\windows\system32\wbem>regsvr32 -s wdacwmiprov.dll
c:\windows\system32\wbem>regsvr32 -s wemsal_wmiprovider.dll
c:\windows\system32\wbem>regsvr32 -s wesl_shelllauncher.dll
c:\windows\system32\wbem>regsvr32 -s wfascim.dll
c:\windows\system32\wbem>regsvr32 -s win32_encryptablevolume.dll
c:\windows\system32\wbem>regsvr32 -s win32_tpm.dll
c:\windows\system32\wbem>regsvr32 -s winmgmtr.dll
c:\windows\system32\wbem>regsvr32 -s wmiapres.dll
c:\windows\system32\wbem>regsvr32 -s wmiaprpl.dll
c:\windows\system32\wbem>regsvr32 -s wmicookr.dll
c:\windows\system32\wbem>regsvr32 -s wmidcprv.dll
c:\windows\system32\wbem>regsvr32 -s wmipcima.dll
c:\windows\system32\wbem>regsvr32 -s wmipdfs.dll
c:\windows\system32\wbem>regsvr32 -s wmipdskq.dll
c:\windows\system32\wbem>regsvr32 -s wmiperfclass.dll
c:\windows\system32\wbem>regsvr32 -s wmiperfinst.dll
c:\windows\system32\wbem>regsvr32 -s wmipicmp.dll
c:\windows\system32\wbem>regsvr32 -s wmipiprt.dll
c:\windows\system32\wbem>regsvr32 -s wmipjobj.dll
c:\windows\system32\wbem>regsvr32 -s wmiprov.dll
c:\windows\system32\wbem>regsvr32 -s wmiprvsd.dll
c:\windows\system32\wbem>regsvr32 -s wmipsess.dll
c:\windows\system32\wbem>regsvr32 -s wmisvc.dll
c:\windows\system32\wbem>regsvr32 -s wmitimep.dll
c:\windows\system32\wbem>regsvr32 -s wmiutils.dll
c:\windows\system32\wbem>regsvr32 -s wuaprovider.dll
c:\windows\system32\wbem>for %i in (*.exe) %i /regserver
c:\windows\system32\wbem>mofcomp.exe /regserver
microsoft (r) mof compiler version 10.0.10586.0
copyright (c) microsoft corp. 1997-2006. rights reserved.
file '/regserver' not found!
c:\windows\system32\wbem>scrcons.exe /regserver
c:\windows\system32\wbem>smi2smir.exe /regserver
smi2smir.exe: no command argument specified, or unknown command argument
c:\windows\system32\wbem>unsecapp.exe /regserver
c:\windows\system32\wbem>wbemtest.exe /regserver
c:\windows\system32\wbem>winmgmt.exe /regserver
invalid parameter
windows management instrumentation
usage:  winmgmt [/backup <filename>] [/restore <filename> <flag>]
                [/resyncperf] [/standalonehost [<level>]] [/sharedhost]
                [/verifyrepository [<path>]] [/salvagerepository]
                [/resetrepository]
/backup <filename>
        causes wmi repository specified file name. the
        filename argument should contain full path file location.
        process requires write lock on repository write
        operations repository suspended until backup process is
        completed.
/restore <filename> <flag>
        manually restores wmi repository specified backup file.
        filename argument should contain full path backup file
        location. perform restore operation, wmi saves existing
        repository write if operation fails. repository is
        restored backup file specified in filename
        argument. if exclusive access repository cannot achieved,
        existing clients disconnected wmi. flag argument must a
        1 (force - disconnect users , restore) or 0 (default - restore if no
        users connected) , specifies restore mode.
/resyncperf
        registers system performance libraries wmi.
/standalonehost [<level>]
        moves winmgmt service standalone svchost process has a
        fixed dcom endpoint. default endpoint "ncacn_ip_tcp.0.24158".
        however, endpoint may changed running dcomcnfg.exe. level
        argument authentication level svchost process. if level
        not specified, default 4 (rpc_c_authn_level_pkt).
/sharedhost
        moves winmgmt service shared svchost process.
/verifyrepository [<path>]
        performs consistency check on wmi repository. when add the
        /verifyrepository switch without <path> argument, live
        repository used wmi verified. when specify path
        argument, can verify saved copy of repository. in this
        case, path argument should contain full path saved
        repository copy. saved repository should copy of entire
        repository folder.
/salvagerepository
        performs consistency check on wmi repository, , if an
        inconsistency detected, rebuilds repository.  content of the
        inconsistent repository merged rebuilt repository, if it
        can read. salvage operation works repository
        wmi service using. mof files contain the
        #pragma autorecover preprocessor statement restored the
        repository.
/resetrepository
        repository reset initial state when operating system
        first installed. mof files contain #pragma autorecover
        preprocessor statement restored repository.

c:\windows\system32\wbem>wmiadap.exe /regserver
c:\windows\system32\wbem>wmiapsrv.exe /regserver
c:\windows\system32\wbem>wmic.exe /regserver
invalid global switch.
c:\windows\system32\wbem>wmiprvse.exe /regserver
c:\windows\system32\wbem>ex

hi,

provided “microsoft windows [version 10.0.10586]”, want confirm if windows 10?

>regsvr32 [/u] [/s] <ocx file name>
“[/u]”, “[/s]” , “<ocx file name>” parameters, /u means unregister .ocx file.
/s means silent mode. , need specify parameter when running commend. 

reference kb 2746232/146219 details:
https://support.microsoft.com/en-us/kb/146219
https://support.microsoft.com/en-us/kb/2746232

>wmi repository verification failed. error code: 0x80040154. description: class not registered.
reference blog - wmi: missing or failing wmi providers or invalid wmi class:
https://blogs.technet.microsoft.com/askperf/2014/08/11/wmi-missing-or-failing-wmi-providers-or-invalid-wmi-class/

if problem persists, please provide more information, such related operation/change before problem happened? 

best regards,
eve wang


please remember mark replies answers if , unmark them if provide no help. if have feedback technet support, contact tnmff@microsoft.com.



Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

List Styles

for loop and start-job from cmd.exe