As an Exchange Admin, the Exchange Management Shell (EMS) is probably something you work on all day. Like any other day, you launch the EMS and are presented with lengthy error but can still work.

  • Can’t generate Export-Module for the current session using Import-PSSession
Exchange 2010: can't generate export-module for the current session using import-pssession. - error
Exchange 2010: Can't generate Export-Module for the current session using Import-PSSession. - Error 1

A simple way in my case to fix this was to go to the following location and remove all the folders (you need to close the EMS).

  • C:\Users\User1\AppData\Roaming\Microsoft\Exchange\RemotePowerShell
Exchange 2010: can't generate export-module for the current session using import-pssession. - error
Exchange 2010: Can't generate Export-Module for the current session using Import-PSSession. - Error 2

Now launch the Exchange Management Shell again and it will re-create the folder of the server you are connecting to and you should receive no errors this time upon launching the EMS:

Exchange 2010: can't generate export-module for the current session using import-pssession. - error
Exchange 2010: Can't generate Export-Module for the current session using Import-PSSession. - Error 3

Hope it helps.

    wpChatIcon

    Discover more from COLLABORATION PRO

    Subscribe now to keep reading and get access to the full archive.

    Continue reading