Forum Discussion

Abhi_002's avatar
Abhi_002
Copper Contributor
Mar 26, 2019

Powershell with modern authentication

Could someone guide me how to use modern authentication in scripts making connections to exchange online/msonline/azuread. This is required for unattended powershell scripts which are configured with basic authentication at present.
  • There are plenty of samples available online or even here on the MTC, do a search. And prepare to make some compromises, as there are no perfect solutions to that issue presently...

    • rfoust's avatar
      rfoust
      Copper Contributor

      VasilMichev Can you post some examples? My searches are finding nothing relevant.  Thanks.

  • jerome317's avatar
    jerome317
    Brass Contributor
    One thing you can do is set up a Conditional Access for your scripting server (requires AAD P1 license I think).

Resources