Forum Discussion
Update to current script. *Solved
Solved the issue thanks to the advice in comments.
- LainRobertsonSilver Contributor
This part towards the end of line 6 is why it's reporting that you're using the basic authentication method.
-Authentication Basic
App secrets and the authentication type are two separate concepts: one does not imply the other. Line 4 with its -AsSecureString has no bearing on the authentication method.
The Microsoft Exchange Online v2 module is the replacement it's talking about, which you can find below. Note a short way from the top, it speaks directly to the replacement for the New-PSSession approach (from your line 6) in the "connection-related commandlets" table.
About the Exchange Online PowerShell V2 module | Microsoft Docs
Cheers,
Lain
- The_PiranhaCopper Contributor
Thanks for the input i'll smack my head against a wall trying to figure out what i'm gonna need to change in my script to keep it working.
I'm clearly a Physical layer / Hardware guy, yall who can do this powershell stuff effortlessly deserve props. Every time they "Improve" something, it breaks something else and those of us who are barely functional with the code spend hours trying to figure out what's broke and where. At least you gave me some direction. That alone is appreciated.