![]() Using (PowerShell powershell = PowerShell.Create()) I used this remote runspace example as a base and tried to modify it to perform the same commands via C#: using (Runspace remoteRunspace = RunspaceFactory.CreateRunspace()) pfx directly): Import-Module ExchangeOnlineManagementĬonnect-ExchangeOnline -CertificateThumbprint "" -AppId "" -Organization "" Background wise, I have the Azure application and certificate all set up and working.įollowing the guidance below, I am able to manually connect using a PowerShell prompt.Īs a small test, these commands all work fine (either using the thumbprint or the. I used Basic Authentication in the past and have opted to switch to Cert Based Authentication for the non-interactive scripts. ![]() Trying to implement Exchange Online Remote PowerShell (using the most recent EXO PowerShell V2 module) with C# in a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |