WMI Calls in C# with WBEM_FLAG_FORWARD_ONLY Flag

  • Thread starter Thread starter NityaR
  • Start date Start date
N

NityaR

Guest
Using System.Management;
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT UserName FROM Win32_ComputerSystem");
if (searcher != null)
{
ManagementObjectCollection collection = searcher.Get();
}

To release COM object. Kindly help us how to add the Flags in C# or suggest any other method to execute the WMI Query.

Continue reading...
 
Back
Top