Forum Discussion
MS Graph (or alternative) for M365/O365 Retention Policy management
- Jan 25, 2022
Good news guys!
Our request just got updated!
Check it out: https://m365log.com/apps-365/certificate-based-authentication-for-security-and-compliance-center-powershell/
Good news guys!
Our request just got updated!
Check it out: https://m365log.com/apps-365/certificate-based-authentication-for-security-and-compliance-center-powershell/
- JeremyTBradshawJan 26, 2022Iron ContributorAwe yeah 👍!!!! The timing is spectacular as I have just worked on several scripts that are stuck doing Basic for unattended... So it'll still be nice and fresh, easy to update them.
Thank you for coming here with this news!- JeremyTBradshawAug 05, 2022Iron Contributor
Jhosefer , svermaak_MGL , dgal73 , Victor_Ivanidze Hi all,
I forgot to share something that was provided to me by Chris D on GitHub
(I think, but sort of forget) MS Support. Right now, the Connect-IPPSSession which supports certificate based app-only authentication is only within the preview modules 2.0.6***. If we want to accomplish the same thing, but using the current GA 2.0.5, we can use Connect-ExchangeOnline and simply supply the -ConnectionUri parameter with the URL to the SCC:Connect-ExchangeOnline -AppId e3de3805-2f5a-43c7-8541-b448b50936f4 -Organization MyTenant.onmicrosoft.com -Certificate (Get-ChildItem cert:\CurrentUser\My\98556EEAC704460287C809AEDA9CD3A33A9CAA9B) -ConnectionUri 'https://ps.compliance.protection.outlook.com'
... and it works flawlessly! I can't find this documented as supported, however, I do feel better using this approach in production scripts for clients, vs using the prerelease module versions. Hope you find it helpful!
- JhoseferAug 24, 2022Copper Contributor**bleep** it!
How is something like this not documented anywhere?
Anyway, thank you very much! I will update our scripts today.