What does HRESULT 0x80240045 (WU_E_UNSUPPORTED_SEARCHSCOPE) mean?

 
Previous Next
WU_E_PER_MACHINE_UPDATE_ACCESS_DENIED WU_E_BAD_FILE_URL

WU_E_UNSUPPORTED_SEARCHSCOPE

WU_E_UNSUPPORTED_SEARCHSCOPE means the caller selected a search scope that the current search does not support. WUA distinguishes per-machine, per-user, and combined search behavior, and not every operation accepts every scope.

How to correct it

  • Review the scope and server-selection options before starting the search.
  • Use criteria and scope supported by the selected update source.
  • Log the search options together with the criteria string so API failures can be reproduced.
$searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()

Microsoft: WUA search scopes and enumerations

Microsoft: IUpdateSearcher::Search

Microsoft: WUA success and error codes


Looking for a different code? Search another status or error code.