This is connecting the exchange using basic authentication. Since the basic authentication is going to be deprecated by microsoft for O365 in oct'22, is there an alternate way to connect to O365 using modern authentication? If yes is it possible to use it in this code? Or is it possible to use Connect-ExchangeOnline module?
This is connecting the exchange using basic authentication. Since the basic authentication is going to be deprecated by microsoft for O365 in oct'22, is there an alternate way to connect to O365 using modern authentication? If yes is it possible to use it in this code? Or is it possible to use Connect-ExchangeOnline module?