• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

If Statements


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.
Alex Young
Alex Young
1 Solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now