Author Posts

September 8, 2014 at 3:36 am

I have the below setup

Exchange 2007 on Windows 2003 Powershell version 2

Windows 8 Powershell version 3

Windows 2008 R2 Powershell version 3

Is there any way I can import the Exchange powershell module into either Windows 8 or WIndows 2008 R2 Powershell Consoles. I am using the following command but it is failing.

$session = New-PSSession -Computer ExchangeServer
Invoke-command -Session $session {Import-Module Exchange}

I get the below error

'The specified module 'Exchange' was not loaded because no valid module file was found in any module directory'

September 8, 2014 at 5:49 am

The Exchange Server module isn't stored in one of the paths that PowerShell searches automatically, it would seem. That means you have to provide a complete path to it.

September 8, 2014 at 8:50 pm

Is there any document/article I can go through to import Exchange Module. I have been searching for a day but was not able to find any article/text to help me out.

September 9, 2014 at 3:05 am

I believe Exchange uses a snapin, not a module. You may want to try something like add-pssnapin microsoft.exchange.management.powershell.admin instead of import-module.