RYU81 Posted December 12, 2007 Share Posted December 12, 2007 WMI not working for me. Link to comment Share on other sites More sharing options...
wikerman Posted December 12, 2007 Share Posted December 12, 2007 Ok try this and see if it works for ya. Rebuilding the WMI Repository If you experience behavior when using WMI, such as application errors or scripts that used to work are no longer working, you may have a corrupted WMI repository. To fix a corrupted WMI repository, you have to reinstall WMI. Follow these steps: Click Start, Run and type CMD Type this command and press Enter: net stop winmgmt Using Windows Explorer, navigate to %systemroot%\system32\wbem directory and delete the Repository directory. By default, the repository folder is located in the C:\Windows\system32\wbem directory. Switch to Command Prompt window, and type: net start winmgmt Re-registering the WMI components The .DLL and .EXE files used by WMI are located in %windir%\system32\wbem. You might need to re-register all the .DLL and .EXE files in this directory. If you are running a 64-bit system you might also need to check for .DLLs and .EXE files in %windir%\sysWOW64\wbem. To re-register the WMI components, run the following commands at the command prompt: cd /d %windir%\system32\wbem for %i in (*.dll) do RegSvr32 -s %i for %i in (*.exe) do %i /RegServer Link to comment Share on other sites More sharing options...
RYU81 Posted December 13, 2007 Author Share Posted December 13, 2007 Ok try this and see if it works for ya.Rebuilding the WMI Repository If you experience behavior when using WMI, such as application errors or scripts that used to work are no longer working, you may have a corrupted WMI repository. To fix a corrupted WMI repository, you have to reinstall WMI. Follow these steps: Click Start, Run and type CMD Type this command and press Enter: net stop winmgmt Using Windows Explorer, navigate to %systemroot%\system32\wbem directory and delete the Repository directory. By default, the repository folder is located in the C:\Windows\system32\wbem directory. Switch to Command Prompt window, and type: net start winmgmt Re-registering the WMI components The .DLL and .EXE files used by WMI are located in %windir%\system32\wbem. You might need to re-register all the .DLL and .EXE files in this directory. If you are running a 64-bit system you might also need to check for .DLLs and .EXE files in %windir%\sysWOW64\wbem. To re-register the WMI components, run the following commands at the command prompt: cd /d %windir%\system32\wbem for %i in (*.dll) do RegSvr32 -s %i for %i in (*.exe) do %i /RegServer Thanks is working Link to comment Share on other sites More sharing options...
Recommended Posts