M365 Exchange online:
Connect-ExchangeOnline -UserPrincipalName <UPN> [-ExchangeEnvironmentName <Value>] [-ShowBanner:$false] [-DelegatedOrganization <String>] [-SkipLoadingFormatData]
# Connect-ExchangeOnline -UserPrincipalName xxx@xxx.onmicrosoft.com
View quarantine policies in PowerShell
# Get-QuarantinePolicy | Format-Table Name
# Get-QuarantinePolicy -QuarantinePolicyType GlobalQuarantinePolicy
# Get-QuarantinePolicy -QuarantinePolicyType QuarantinePolicy
# Get-QuarantinePolicy -Identity DefaultFullAccessPolicy
# Get-QuarantinePolicy -Identity AdminOnlyAccessPolicy
# Get-QuarantinePolicy -Identity DefaultFullAccessWithNotificationPolicy
<Standard preset security policy:>
# Write-Output -InputObject ("`r`n"*3),"Standard anti-malware policy",("-"*79);Get-MalwareFilterPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Standard"; Write-Output -InputObject ("`r`n"*3),"Standard anti-spam policy",("-"*79);Get-HostedContentFilterPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Standard"; Write-Output -InputObject ("`r`n"*3),"Standard anti-phishing policy",("-"*79);Get-AntiPhishPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Standard"
<Strict preset security policy:>
Write-Output -InputObject ("`r`n"*3),"Strict anti-malware policy",("-"*79);Get-MalwareFilterPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Strict"; Write-Output -InputObject ("`r`n"*3),"Strict anti-spam policy",("-"*79);Get-HostedContentFilterPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Strict"; Write-Output -InputObject ("`r`n"*3),"Strict anti-phishing policy",("-"*79);Get-AntiPhishPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Strict"