Hi All, I am developing application for Exchange Server 2003. I have to get the "Exchange Server Service Pack Version Information" with Exchange Server 2003. eg: Environment: OS: Windows 2000 Server Exchange Server: 2000 Exchange Server Service Pack: 3 Visual Studio: 6.0 How can I get Exchange Server Service Pack version Info through programmatically? (ie. 3) -- Dur.
There are a few ways you could do this, (If you running Exchange 2000 SP2 or Greater) you can use WMI and the ExchangeServerState Class have a look at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_wmiref_pr_Exchange_ServerExchangeVersion.asp You can use CDOEXM if you have Exchange System Manager Installed and use the IExchangeServer Interface and the ExchangeVersion property see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_emo_iexchangeserver_exchangeversion.asp You can query the versionnumber property in Active Directory which will give you the build number you can then use this to work out which service pack has been applied. Have a look at http://cwashington.netreach.net/depo/view.asp?Index=1034&ScriptType=vbscript for a sample Cheers Glen "Dur" wrote in message news:056A55CF-495F-454A-BA9C-6F05BFFEA6C7@microsoft.com... > Hi All, > > I am developing application for Exchange Server 2003. > I have to get the "Exchange Server Service Pack Version Information" > with Exchange Server 2003. > > eg: > > Environment: > OS: Windows 2000 Server > Exchange Server: 2000 > Exchange Server Service Pack: 3 > Visual Studio: 6.0 > > How can I get Exchange Server Service Pack version Info through > programmatically? (ie. 3) > > -- > Dur.