_liManagementScope.Add(new ManagementScope("\\\\hostname\root\\CIMV2")); foreach (ManagementScope item in _liManagementScope) { item.Connect(); ObjectQuery query = new ObjectQuery( "SELECT * FROM Win32_OperatingSystem"); ManagementObjectSearcher searcher = new ManagementObjectSearcher(item, query); }
ConnectionOptions connection = new ConnectionOptions(); connection.Username = userNameBox.Text; connection.Password = passwordBox.Text; connection.Authority = "ntlmdomain:DOMAIN";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)