Question : How to resolve: wmic exception error code 0x80020009, failure in formatengine.cpp

Hi,

When I try to execute any command using wmic, I get an exception with error code = 0x80020009. I've run wmdiag.exe and it shows no problems. I've appended partial output from trying to execute the "process" command using the "/trace:ON" option. Any help would be greatly appreciated.

Thanks!

Operating system: Windows Server 2003
Anti-virus: Kaspersky
RAM: 32 Gigs
CPU Name: Intel Xeon 5110

Partial output from executing "wmic /trace:ON process":


SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IWbemObjectTextSrc::GetText(0, -, WMI_OBJECT_TEXT_CIM_DTD_2_0, -, -)
Line:    413 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line:    446 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp

SUCCESS: CoCreateInstance(CLSID_FreeThreadedDOMDocument, NULL, CLSCTX_INPROC_SER
VER, IID_IXMLDOMDocument2, -)
Line:    198 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

SUCCESS: IXMLDOMDocument::loadXML(-, -)
Line:    229 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

SUCCESS: CoCreateInstance(CLSID_XSLTemplate, NULL, CLSCTX_SERVER, IID_IXSLTempla
te, -)
Line:   3219 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

SUCCESS: CoCreateInstance(CLSID_FreeThreadedDOMDocument, NULL, CLSCTX_SERVER,IID
_IXMLDOMDocument2, -)
Line:   3242 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

SUCCESS: IXSLDOMDocument2::put_async(VARIANT_FALSE)
Line:   3254 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

SUCCESS: IXSLDOMDocument2::load(L"C:\WINDOWS\system32\wbem\texttable.xsl", -)
Line:   3269 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

SUCCESS: IXSTemplate::putref_stylesheet(-)
Line:   3283 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

SUCCESS: IXSTemplate::createProcessor(-)
Line:   3295 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

SUCCESS: IXSProcessor::put_input(-)
Line:   3332 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

SUCCESS: IXSProcessor::put_output(-)
Line:   3359 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

FAIL: IXSProcessor::tranform(-)
Line:   3373 File: d:\nt\admin\wmi\wbem\tools\wmic\formatengine.cpp

ERROR:
Code = 0x80020009
Description = Exception occurred.
Facility = Dispatch

Answer : How to resolve: wmic exception error code 0x80020009, failure in formatengine.cpp

I was going to follow Rob's suggestions to try to get WMIC working but, for some reason, WMIC started working. I have no idea why.
Random Solutions  
 
programming4us programming4us