Implicit Remoting - Exchange

Welcome Forums General PowerShell Q&A Implicit Remoting - Exchange

This topic contains 4 replies, has 3 voices, and was last updated by

 
Keymaster
4 years, 3 months ago.

  • Author
    Posts
  • #18615

    Participant
    Points: 0
    Rank: Member

    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

    Keymaster
    Points: 1,674
    Helping HandTeam Member
    Rank: Community Hero

    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

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 1
    Rank: Member

    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

    Keymaster
    Points: 1,674
    Helping HandTeam Member
    Rank: Community Hero

The topic ‘Implicit Remoting - Exchange’ is closed to new replies.