ManagementException is raised while working WMI object collection after installing windows 10 1803 update(April 25, 2019—KB4493437 (OS Build 17134.753

  • Thread starter Thread starter Nagalakshmi Chagamreddy
  • Start date Start date
N

Nagalakshmi Chagamreddy

Guest
ManagementException is raised while working WMI object collection after installing windows 10 1803 update(April 25, 2019—KB4493437 (OS Build 17134.753)). Below is the sample code

ManagementObjectCollection collection;

string query = "select * from win32_Thread where ProcessHandle = \"" + processId + "\"";
using (ManagementObjectSearcher searcher = new ManagementObjectSearcher(query))
{
collection = searcher.Get();
}

foreach (ManagementObject ObjThread in collection)

{

ObjThread.Get()

}

Above code is giving ManagementException with message "Generic Failure" while iterating through ManagementObjectCollection. This is happening only on latest windows 10 1803 update (OS Build 17134.753). This code was working fine before the update. Could you please help us in resolving this issue?

Continue reading...
 
Back
Top