Code. Collaborate. Organize.
No Limits. Try it Today.
var obj = new ManagementObjectSearcher("Select * FROM Win32_OperatingSystem");
var col = obj.Get();
foreach (var mgn in col)
string arch = mgn["OSArchitecture"].ToString();
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
News on the future of C# as a language