Sadiq_to222 Posted November 8, 2022 Posted November 8, 2022 Hi everyone, As of October 2022, Microsoft have announced that they are no longer supporting the use of Basic Authentication which means a script to create email signatures and pushes it to the web version of outlook in office 365. The command let in the script which uses basic authentication is this and uses a cred file to automatically sign into office 365 and push the signature without me having to sign in every time I run it. Basic Authentication command-let: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic –AllowRedirection So what would a new one be? And needs to be able to sign in automatically. Any ideas?
Norphy Posted November 9, 2022 Posted November 9, 2022 You need to set up a service principal in Azure AD, attach a certificate to it and use that certificate to authenticate with Exchange Online. You also need the new EXO Exchange Online PowerShell module (https://www.powershellgallery.com/packages/ExchangeOnlineManagement/3.0.0) Full details here: https://learn.microsoft.com/en-us/powershell/exchange/app-only-auth-powershell-v2?view=exchange-ps 2
mscott Posted November 9, 2022 Posted November 9, 2022 Hey! Thanks for sending this over, will take a look at this now and hopefully get it working
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now