question

skiphofmann-5016 avatar image
0 Votes"
skiphofmann-5016 asked ·

Automated powershell scripts modern authentication

Hello all

We have many powershell scripts that authenticate to O365 and Azure using an onprem service account. When Microsoft starts forcing modern auth, how do we configure are scripts to authenticate ?

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

michev avatar image
0 Votes"
michev answered ·

Which services exactly? Currently, pretty much only Azure AD tasks can be automated with Modern auth, every other O365 related script will either have to use basic auth, or to have a person manually interact with the modern auth prompt. Updates are coming, but currently no ETAs.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

skiphofmann-5016 avatar image
0 Votes"
skiphofmann-5016 answered ·

Hi Thanks again for the quick reply. These are all scripts that interact with Exchange online. How do we incorporate modern auth into our scripts ?

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

skiphofmann-5016 avatar image
0 Votes"
skiphofmann-5016 answered ·

Sorry i know how to use modern auth for the powershell script. What i am trying to understand is how can the script be used for an automated task if MFA is being enforced ?

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You cannot, yet. The team is working on support for automated tasks, but the current version doesn't support it.

1 Vote 1 · ·