CodePudding user response:
1. As an administrator to run CMD. Exe2. Sc config Winmgmt depend=RpcSs
View can be registered for the service, really not line, can only use the following batch repair this service, look line not line:
@ 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 the Repository Rep_bak
For % % I in (*. DLL) do RegSvr32 -s % % I
For % % I in (*. Exe) do call: FixSrv % % I
For % % I in (*. Mof, *. Finally MFL) do Mofcomp % % I
Net start winmgmt
Goto the End
: FixSrv
If/I (% 1)==(wbemcntl. Exe) goto SkipSrv
If/I (% 1)==(wbemtest. Exe) goto SkipSrv
If/I (% 1)==(mofcomp. Exe) goto SkipSrv
The % 1/RegServer
: SkipSrv
Goto the End
: TryInstall
If not exist wmicore. Exe goto the End
Wmicore/s
Net start winmgmt
: End