Hi,
you could easily use WMI to read version of your exchange server.
string search_term = "Vendor LIKE 'Microsoft%' AND Name = 'Exchange'";
string[] properties = new string[]{ "Version" };
SelectQuery query = new SelectQuery("Win32_Product", search_term, properties );
using (ManagementObjectSearcher search_product = new ManagementObjectSearcher(query))
using (ManagementObjectCollection products = search_product.Get())
foreach (ManagementObject product in products)
{
string version = (string) product["Version"];
}
}
Microsoft's WMI-Tools is a great helper:
http://www.microsoft.com/download/en/details.aspx?id=24045[
^]
With Best Regards