Loading PS Modules for Exchange Management

Jul 28

Written by:
Thursday, July 28, 2011 12:09 PM  RssIcon

1. The easiest thing for this is the "Exchange Management Shell" started on a (x64) Exchange Server itself or from a Client with a x64 OS (Windows 7 / VISTA) and the Exchange administrative tools installed 

This solution has the advantage, that you can immediately start your work without loading any modules or add-ins at first asd

2. You have the "classic" Powershell or PowerShell ISE

When you begin typing "Powe..." (the beginning of the word "Powershell") into the search field in the Start-menu, all possibilities are listed in the "Programs" - result section.

You have the choice between the x86 and the x64 versions and between the classic and the ISE(Integrated Scripting Envirnonment) shell.


 Always take the x64 versions to be able to load the snapIns correctly!


I prefer the ISE, because you have 3 areas (script / output / interactive) and so can also write longer scripts. When you work with the second solution, you MUST load 3 PSSnapins. You can do this with the following command. In the following code section is also included, how to load the Servermanager - module to install the PowerShell ISE.

# to install the PowerShell ISE on a 2008 Server
Import-Module Servermanager #module available on server not on Windows 7
Add-Windowsfeature PowerShell-ISE

# here is the import of the 3 necessary PSSnapIn's
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010, Microsoft.Exchange.Management.PowerShell.Setup , Microsoft.Exchange.Management.Powershell.Support -a silentlycontinue

# lists all loaded snapin's
Get-PSSnapin -Registered
# from here you can start with your exchange-specific cmdlets eg. list all your exchange servers:
Get-Exchangeserver