WMIC returns error when querying product
Posted
by Stu
on Server Fault
See other posts from Server Fault
or by Stu
Published on 2010-02-25T11:19:32Z
Indexed on
2010/04/15
20:13 UTC
Read the original article
Hit count: 373
I'm trying to automate the installation of an MSI on my server, however before the installation can go ahead I need to uninstall the previous version from the server.
Searching on the internet I've found that WMIC is the tool required but there seems to be a problem with the setup of WMI on the server. Running the following command gives errors:
command prompt>wmic
then inside the tool
/trace:on
product get name
This returns a long string of successes and one failure:
FAIL: IEnumWbemClassObject->Next(WBEM_INFINITE, 1, -, -)
Line: 396 File: d:\nt\admin\wmi\wbem\tools\wmic\execengine.cpp
Node - ENTECHORELDEV
ERROR:
Code = 0x80041010
Description = The specified class is not valid.
Facility = WMI
I'm trying to run this on a standard install of Windows Server 2003 R2 with administrator privelages.
Thanks
Stu
© Server Fault or respective owner