wmi Rebuild from BLOG

//

1. Open a CMD prompt on the server and change directory to %windir%\System32\WBEM (\SysWOW64\WBEM on x64)

2. Execute the following:

FOR /f %s in ('dir /b /s *.dll') do regsvr32 /s %s 
Net stop /y winmgmt 
FOR /f %s in ('dir /b *.mof *.mfl') do mofcomp %s 
Net start winmgmt 

Note: Don't attempt to compile the MOF files in the \bin\i386 folder on a site server, as we contain stub files (names start with an underscore character such as _smsprov.mof) that need to be populated with site specific data through other means.   

//
-------------------
Thanks,

0 comments:

Post a Comment