Running PowerShell scripts from MIM Portal RRS feed

  • Question

  • Hi,

    We are trying to run a PowerShell script from the MIM portal through one of our workflows. The script should connect to one of our 2016 exchange servers and import exchange server commands locally.

    As MIM supports PowerShell v2 and exchange runs a higher version of PowerShell by default, MIM is unable to execute the PowerShell script.

    We have MIM 2016 and Exchange 2016.

    Error message seen in Event Viewer logs:

    The module cannot be loaded because it has been generated with an incompatible version of Export-PSSession cmdlet. Generate the module with the Export-PSSession cmdlet

    The script works fine when it is executed in PowerShell console.

    Any help would be appreciated. Thank you.



    Wednesday, March 4, 2020 2:06 PM