I need a solution
Hi Guys,
I am having problems getting hardware inventory on my clients and after uninstalling/reinstalling the SMA as well as trying things with support it appears WMI may be broken. Has anyone used a relatively reliable script for repairing WMI (I have seen quite a few out there) that assumes it is broken and attempts to repair it?
%systemdrive%
cd %windir%\system32\wbem
net stop winmgmt /y
for /f %s in ('dir /b *.dll') do regsvr32 /s %s
if exist repository.old rmdir /s /q repository.old
rename repository repository.old
wmiprvse /regserver
winmgmt /regserver
net start winmgmt