Knowledgebase
emscom > emscom Help Desk > Knowledgebase

Search help:


WMI Repair Script

Solution WMI repair script

rem begin
net stop winmgmt
pause

%SYSTEMDRIVE%

cd %SYSTEMROOT%\system32\wbem
rd /S /Q repository

regsvr32 /s %SYSTEMROOT%\system32\scecli.dll
regsvr32 /s %SYSTEMROOT%\system32\userenv.dll

mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl

for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s

if exist exwmi.mof (
mofcomp exwmi.mof
mofcomp -n:root\cimv2\applications\exchange wbemcons.mof
mofcomp -n:root\cimv2\applications\exchange smtpcons.mof
mofcomp exmgmt.mof
) else (
@Echo Exchange not installed
)

rem end
 
Was this article helpful? yes / no
Related articles RRAS 4110 message box
Exchange 2003 MAD Monitoring Thread error 0x80041010
Article details
Article ID: 8
Category: Windows
Date added: 15-02-2011 06:40:39
Views: 1145
Rating (Votes): Article rated 3.2/5.0 (20)

 
« Go back

 
Powered by Help Desk Software HESK, in partnership with SysAid Technologies