| Previous | Next |
| WU_E_INVALID_FILE | WU_E_EULA_UNAVAILABLE |
WU_E_INVALID_CRITERIA
WU_E_INVALID_CRITERIA is primarily a Windows Update Agent API error. The search expression passed to IUpdateSearcher::Search does not follow the WUA criteria language.
How to correct it
- Validate property names, value quoting, and the placement of
ANDandORin the criteria string. - Microsoft documents that
ORcan be used only at the top level of the search expression. - Start with a minimal supported query, then add filters one at a time while logging the final criteria sent to WUA.
IsInstalled = 0 AND Type = 'Software'
Microsoft: IUpdateSearcher::Search criteria syntax
Microsoft: Using the Windows Update Agent API
Microsoft: Windows Update error reference
Looking for a different code? Search another status or error code.