32 lines
965 B
Batchfile
32 lines
965 B
Batchfile
@echo off
|
|
::
|
|
::
|
|
time /t
|
|
|
|
echo ################################################################################
|
|
echo ################################################################################
|
|
echo WMI
|
|
echo ################################################################################
|
|
winmgmt /resyncperf
|
|
winmgmt /salvagerepository
|
|
winmgmt /resetrepository
|
|
sc config winmgmt start= disabled
|
|
net stop winmgmt /y
|
|
net stop ccmexec /y
|
|
%systemdrive%
|
|
cd %windir%\system32\wbem
|
|
For /f %%s in ('dir /b *.dll') do regsvr32 /s %%s
|
|
regsvr32 wmisvc.dll
|
|
net start winmgmt
|
|
net start ccmexec
|
|
for /f %%s in ('dir /b *.mof *.mfl') do mofcomp %%s
|
|
echo ################################################################################
|
|
|
|
echo ################################################################################
|
|
echo #### Der Rechner sollte nun neugestartet werden.
|
|
echo ################################################################################
|
|
|
|
time /t
|
|
|
|
pause
|