Implicit Remoting - Exchange

This topic contains 4 replies, has 3 voices, and was last updated by  Don Jones 3 years, 2 months ago.

  • Author
    Posts
  • #18615

    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'

  • #18619

    Don Jones
    Keymaster

    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.

  • #18661

    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.

  • #18666

    Jason Hofferle
    Participant

    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.

  • #18669

    Don Jones
    Keymaster

You must be logged in to reply to this topic.