Files
THE-TOOL/CMD/SYSTEM_WMI.bat
2025-12-14 15:46:14 +01:00

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