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...
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...