MSP StockroomFind a guide, template or tool…/
Curated SOPs / Microsoft 365 and identity

M365 Curated SOP / Microsoft 365 and identity

Check whether legacy authentication is blocked

Find out whether a client's Microsoft 365 tenant still lets old mail and Office clients sign in with a password alone.

Low risk / Read-only / Reviewed December 2, 2026

Written and maintained by MSP Stockroom. Nobody else edits it.

On this page

Before you run anything: read every command first and understand what it does. Replace example names, domains and addresses with your own. Try it on a test device or tenant before a client's. Keep client names, passwords and keys out of tickets and chat.

Purpose

Find out whether a client's Microsoft 365 tenant still lets old mail and Office clients sign in with a password alone. Legacy authentication (POP, IMAP, authenticated SMTP, Exchange ActiveSync with basic auth, very old Office) cannot do multifactor authentication, so an attacker with a password walks straight past MFA. Run it at onboarding and at each security review. Read-only: nothing in this SOP changes the tenant.

Scope and prerequisites

  • Run by the client's assigned engineer.
  • Needs an account that can read policies, such as Global Reader or Security Reader.
  • Step 4 reads sign-in logs, which needs Reports Reader or higher, and Microsoft Entra ID P1 for more than 7 days of history.
  • The Microsoft Graph PowerShell SDK installed from the PowerShell Gallery.
  • Store the results in your documentation platform, never in this library.

Steps

  1. Sign in with read-only scopes:
    # Read-only scope. You will be asked to sign in to the client's tenant.
    Connect-MgGraph -Scopes "Policy.Read.All"
  2. Check whether security defaults are on:
    Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy |
        Select-Object DisplayName, IsEnabled

    Read the result:

    • IsEnabled True: security defaults block legacy authentication for everyone. Go to step 4 to confirm nothing still tries to use it.
    • IsEnabled False: the tenant relies on Conditional Access instead. Go to step 3.
  3. Look for an enabled Conditional Access policy that blocks legacy clients:
    Get-MgIdentityConditionalAccessPolicy -All |
        Where-Object {
            $_.Conditions.ClientAppTypes -contains 'exchangeActiveSync' -or
            $_.Conditions.ClientAppTypes -contains 'other'
        } |
        Select-Object DisplayName, State,
            @{ n = 'ClientApps'; e = { $_.Conditions.ClientAppTypes -join ', ' } },
            @{ n = 'Grant';      e = { $_.GrantControls.BuiltInControls -join ', ' } },
            @{ n = 'Users';      e = { $_.Conditions.Users.IncludeUsers -join ', ' } },
            @{ n = 'Excluded';   e = { $_.Conditions.Users.ExcludeUsers.Count } }

    Read the result:

    • A policy with State enabled, Grant block, ClientApps covering exchangeActiveSync and other, and Users All: legacy authentication is blocked. Record any excluded accounts and why each one is excluded.
    • State enabledForReportingButNotEnforced: the policy only reports. Legacy authentication is not blocked yet.
    • No rows, and security defaults are off: legacy authentication is allowed. Record this as a finding for the client.
  4. See who still tries to use legacy authentication. In the Microsoft Entra admin center, open Entra ID, then Monitoring and health, then Sign-in logs. Add the Client app column, filter Client app to every legacy authentication client, and look at the last 30 days. Repeat on the User sign-ins (non-interactive) tab. Record each user, client app and whether the sign-in succeeded.
  5. Disconnect when finished:
    Disconnect-MgGraph

Verify

You can state one of three things for the client, with evidence: legacy authentication is blocked for everyone; it is blocked with named, justified exceptions; or it is allowed. Any successful legacy sign-in in step 4 is listed with the user and client app.

Rollback

Nothing to roll back; this SOP only reads. Turning on security defaults or a blocking policy is a separate change, made with the client's approval and tested in report-only mode first, because it stops old devices and scanners that send mail.

Notes

Scanners and line-of-business apps that send mail with authenticated SMTP are the usual reason a client still needs an exception. Move them to a modern method before blocking, rather than excluding them for ever. See https://learn.microsoft.com/entra/identity/conditional-access/policy-block-legacy-authentication for Microsoft's guidance.

Sources and notes

Curated SOP from the MSP Stockroom SOP library (curated/m365-identity/check-whether-legacy-authentication-is-blocked.md). Last reviewed December 2, 2026. Tested on: Not yet run; written for Microsoft Graph PowerShell SDK 2.x; PowerShell 7.4. Vendor screens and commands change; check the vendor documentation before you rely on a step. Found a mistake? See corrections.

Search the stockroom

↑ ↓ to choose · Enter to open · Esc to close

Open the full search page →