WMI invalid Query Error : 80041017

Anonymous
2024-07-31T11:37:20+00:00

Hi ,

I monitor windows VM with WMI credentials but some VM unable to respond to queries e.g system uptime , IO read and write , please help and check below screenshot for the error.

Queries:

SELECT IDProcess,PercentProcessorTime,Name,Timestamp_Sys100NS FROM Win32_PerfRawData_PerfProc_Process

SELECT AvgDisksecPerRead,AvgDisksecPerRead_Base,AvgDisksecPerTransfer,AvgDisksecPerTransfer_Base,AvgDisksecPerWrite,AvgDisksecPerWrite_Base,Frequency_PerfTime FROM Win32_PerfRawData_PerfDisk_PhysicalDisk WHERE Name='_Total'

SELECT IOReadOperationsPersec,IOWriteOperationsPersec FROM Win32_PerfFormattedData_PerfProc_Process WHERE Name='_Total'

Windows for business | Windows Server | User experience | Remote desktop services and terminal services

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-08-01T02:06:28+00:00

    Hello,

    The WMI error code 0x80041017 typically indicates "WBEM_E_INVALID_QUERY" WMI Error Constants (WbemCli.h) - Win32 apps | Microsoft Learn

    It is possible that the Win32_PerfRawData_PerfOS_Processor cannot be found or accessed on the server and causing a null result. If the same query runs and retrieves values from other similar Windows systems at the same OS level this indicates that the query is correct and something is different at the OS level causing the query not to retrieve data. (see: Getting 'Invalid WMI query' with error code 0x80041017 in Windows (manageengine.com))Note: Since the websites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.

    I hope the information provided is helpful. However, I must apologize as this issue falls beyond my area of expertise. You might also consider reposting your question in the Windows API - Win32 - Microsoft Q&A forum for further assistance.

    Best regards,

    Karlie

    0 comments No comments