Article ID: 2938227 - View products that this article applies to.
After you rebuild the WMI repository for a host that is running Windows Server 2012 or Windows Server 2012 R2, Microsoft System Center 2012 Virtual Machine Manager reports a Needs Attention status for the host. Also, host update jobs finish with error 2915 and with the hexadecimal code 0x80338000 while they are trying to connect to the following WMI resource:
Windows Server 2012 and Windows Server 2012 R2 have a known issue when they rebuild the WMI namespace. Specifically, both the removal MOF file and the installation MOF file are processed when the standard mofcomp command is issued to rebuild the WMI namespace. This can result in the installation MOF file being processed before the removal MOF file is processed. When this occurs, the WMI namespace is not present after the rebuild.
To resolve this issue, at a command prompt, use the CD command to change to the %windir%\System32\Wbem directory. From there, type the following at the command prompt, and then press Enter:
for /f %s in ('dir /s /b *.mof *.mfl') do mofcomp %s” with: “dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %s in (moflist.txt) do mofcomp %s”
This rebuilds the WMI repository on the host. Additionally, it makes sure that the removal MOF files are run before the installation MOF files are run. After the next host update in Virtual Machine Manager, the hosts report that they are in the Ready state.
Article ID: 2938227 - Last Review: April 2, 2014 - Revision: 1.1