Connection to Exchange Online fails after establishing connection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 11:32 AM
I'm trying to setup a Flow Action that will allow for differing PowerShell cmdlets (ie commands) to be run against Exchange Online, mainly specific to Distribution List review and manipulation.
I've successfully connected to Exchange Online via a PowerShell step utilizing a certificate (see post here: https://www.servicenow.com/community/developer-forum/information-on-how-to-add-users-to-exchange-onl... ), but when I try to do anything after that I'm met with errors:
PowerShell script execution failed. Script returned status 1 using account user MySvcAccount@MyDomain.com
More than one active key found in crypto module wit sys_id: 6293d8a2b71130108321e916de11a959 for key type id: sym_key_enc
I'm able to do whatever I want for Exchange Online if I login to the MID server and run scripts directly in PowerShell. The account used by the Connection Alias is also a local Admin on the server, and should have whatever rights it needs to run PS.