Public/Get-AuthPolicy.ps1
function Get-AuthPolicy { <# .SYNOPSIS -Taylor Lee Modified 071219 .DESCRIPTION Used to view existing Authentication Polocies for Exchange Online Mailboxes Use of Modern Authentication Only is important for securing against Password Spray Attacks. New attacks on Basic authentication allow for taking control of an Exchange Online account by simply sending a malicious link to a target. .EXAMPLE Gets the Authentication Policy out to a grid view Get-AuthPolicy | Out-GridView .NOTES Requires the Exchange Online module be installed, imported, and Connected. .LINK New-AuthPolicy Set-AuthPolicy .Link https://github.com/TheTaylorLee/AdminToolbox #> [CmdletBinding()] Param ( ) Get-Recipient -RecipientTypeDetails UserMailbox -ResultSize Unlimited | Get-User | Select-Object DisplayName, AuthenticationPolicy, Sts* } |