none
WMI Calls in C# with WBEM_FLAG_FORWARD_ONLY Flag RRS feed

  • Question

  • Using WMI calls in C# Windows application to get the system information from Local computer .

    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.
    Monday, October 22, 2018 7:29 AM

All replies

  • Hi,

    I do not see how your question is related to "Project Online", a Microsoft Project Management tool in the cloud. I suggest to look for an appropriate forum do get an answer.

    Regards
    Barbara

    Monday, October 22, 2018 8:14 AM
    Moderator