WMI is not consistent in retrieving Win32_ComputerSystem info for the same exact machine
Environment = Windows 7 Professional For a while, WMI had reported the following information a certain machine: Win32_ComputerSystem\Model = "HP EliteBook 8560p" Win32_ComputerSystem\Manufacturer = "Hewlett-Packard" One day, WMI reported the following: Win32_ComputerSystem\Model = "161A____" Win32_ComputerSystem\Manufacturer = "HPQOEM" A few days later, WMI went back to reporting the usual: Win32_ComputerSystem\Model = "HP EliteBook 8560p" Win32_ComputerSystem\Manufacturer = "Hewlett-Packard" I do not have the machine and the user can't explain what could have caused WMI to retrieve differing information. Somehow Windows got into a state where different information is retrieved on the same PC ?? Is there a way to "reset" WMI so it retrieves information consistently ?? This similar (and different) to previous experiences (different machines/different OS). The usual case was: Win32_ComputerSystem\UserName= DOM \ user where: DOM is the user domain (all caps) user is the user name (all lowercase) But sometimes WMI retrieved : Win32_ComputerSystem\UserName = DOM \ USER where: the user name was all caps. Apparently caused when hibernating the machine or Win32_ComputerSystem\UserName = DOM \ dom \ user where: the user domain in all caps followed by user domain in all lowercase. Never explained. I am using WMI to develop an ID for licensing purposes so it's extremely important that WMI retrieve information consistently. The problem with UserName was solvable. However the randomness with Model and Manfacturer seems more problematic. Thanks !!!
August 7th, 2012 11:58am

Hi, I suggest you can try the following: 1. Start the computer and press F8 on boot up and select Safe Mode. 2. In the start menu type "cmd" (without quotes) and on the top search result, right click the program icon and choose Run as administrator 3. Type "net stop winmgmt" (without quotes) and press Enter to make certain the WindowsManagementInstrumentation (WMI) service is not running. 4. Open a Windows Explorer and locate the path to C:\ windows\system32\WBEM\ folder and rename the Repository folder to something else like RepositoryOLD (right click and choose 'Rename Folder'). 5. Reboot and restart as normal. 6. In the start menu type "cmd" (without quotes) and on the top search result, right click the icon and choose Run as administrator 7. Type "net stop winmgmt" (without quotes) and press enter to stop the WMI service. 8. Type "winmgmt /resetRepository" (without quotes) and restart the computer. In addition, you can refer to the following articles: How to Reset Windows 7 WMI List of WMI-Related Hotfixes for Windows 7 and Windows Server 2008 R2 (en-US) Hope this helps Vincent Wang TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 9th, 2012 4:50am

Hi, I suggest you can try the following: 1. Start the computer and press F8 on boot up and select Safe Mode. 2. In the start menu type "cmd" (without quotes) and on the top search result, right click the program icon and choose Run as administrator 3. Type "net stop winmgmt" (without quotes) and press Enter to make certain the WindowsManagementInstrumentation (WMI) service is not running. 4. Open a Windows Explorer and locate the path to C:\ windows\system32\WBEM\ folder and rename the Repository folder to something else like RepositoryOLD (right click and choose 'Rename Folder'). 5. Reboot and restart as normal. 6. In the start menu type "cmd" (without quotes) and on the top search result, right click the icon and choose Run as administrator 7. Type "net stop winmgmt" (without quotes) and press enter to stop the WMI service. 8. Type "winmgmt /resetRepository" (without quotes) and restart the computer. In addition, you can refer to the following articles: How to Reset Windows 7 WMI List of WMI-Related Hotfixes for Windows 7 and Windows Server 2008 R2 (en-US) Hope this helps Vincent Wang TechNet Community Support
August 9th, 2012 4:55am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics