Running PowerShell steps under a different account

Hello 

We are running a custom process that touches several target systems, for security reasons we cannot provide the account under wich 1IM service account runs with specific Exchange permissions so we need to use a different account for running Powershell commands to the on-prem Exchange Server

The Connect-ExchangeServer cmdlet does not allow to use credentials (PSession cmdlet allows credentials but we cannot use it due to Exchange version restrictions) therefore we are blocked, my question here would be: 

Its possible to set one specific step on the multistep process to run under a different account than the service account ? Throug connection string or something similar ? 

Thks in advance

  

  • Your question is a little confusing for me...not quite sure if you're talking about trying to do this in Sync or Process.

    A previous client, we had a sync for EXH & O3E, but we also had processes that called PowerShell for O3E to do things like retention, etc prior to decommissioning. These proceses of course can have different credentials (injected from encrypted ConfigParams), which was handy when we were going through the process of moving from "user account" service authentication to using Application IDs and Certificates.

  • we are using a custom process with a PS step therefore what u mentioned could be a perfect solution, we need to do user authentication (only for this step) using a different account than the one running the service