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

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

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:

Hope it helps.


Leave a Reply

Avatar placeholder

Your email address will not be published.