Looking for guidance in connecting a RDM PowerShell session to a local Microsoft Exchange (2016) server and invoke the ability to run Exchange Management Shell commands.
No issues setting up an RDM remote console session to the Exchange server but fumbling with the rest of the sequence and how best to automate it in RDM.
(Similar post here for connecting to Office 365 https://forum.devolutions.net/topic4978-connecting-to-office--powershell.aspx . Microsofts guidance re remote execution of Exchange commands https://docs.microsoft.com/en-us/powershell/exchange/exchange-server/connect-to-exchange-servers-using-remote-powershell?view=exchange-ps )
Thanks
Hello,
If you are using a PowerShell Session entry type or a PowerShell Remote Console entry type, you can use the After Connect section in the Events tab of the entry.
The Script option will let select an external PowerShell script file or the Macro/Script/Tool section will allow to choose within the PowerShell Macros/Scripts/Tools entries in your data source.
Best regards,
Érica Poirier
Hi Erica,
I could not get this to work with the PowerShell entry type and the After Connect Option - it complained that it couldn't find my PowerShell script even though I definitely pointed it to the right file. I was able to get it to work though using the "Embedded Script" option on the General Tab of the PowerShell entry type.
Thanks
Hello,
Thank you for your feedback and glad that it's working.
Best regards,
Érica Poirier