What is the best way i am running a script for a few of our clients and basically i want to add the Exchange powershell snappins based on the exchange on that server with one script.
so for example i want
IF Exchange 2007 then run this to add the Exchange Commands
If exchange 2010 then run this
I've tried a few ways but none work anyone let me know the structure i would need.