Powershell ISE and exchange online

So, I have a unique challenge. I need to open Powershell ISE have it connect to office 365 with user credentials without any input.

For example I am able to open a regular Powershell session with the following.

Powershell /scriptpath.ps1 -user “user ID” -password “password”

If it helps this is for cyberark. Now the script contains the ExOnline connection strong and just passed the parameters. I have not been able to do this with ISE.

So far I can start ISE but I can’t tell it to run the script with the parameters and keep the session open.

Apology for format and Grammer type this out on phone.

submitted by /u/Piratecode89
[link] [comments]

Leave a Reply