WQL Class invalid

Yuri Augusto Da Costa 0 Reputation points
2023-06-13T17:51:27.71+00:00

Hello there! I developed an application for the company that I work using windows forms and C# .NET. With that application I read the machine's resources, both hardware and software. The reading of hardware resources is done using WQL, but when replicating the application to the company's computers, some computers showed an error when trying to read the RAM memory class (Win32_PhysicalMemory), saying it did not exist. I would like to understand how this is possible, since the computer is using Windows 10 and according to Microsoft's documentation, the class is supported since Windows Vista

Developer technologies Windows Forms
Windows development Windows API - Win32
Developer technologies C#
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 122.5K Reputation points
    2023-06-13T19:19:32.63+00:00

    Did you confirm the problem using the wmic memorychip command?

    Maybe the system can be repaired using the winmgmt tool:

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.