static string GetWmiValue(ManagementObject manObj, string propertyName) { object result = manObj[propertyName]; return result == null ? "" : result.ToString(); }