Library

Guides Quick Fixes Scripts Find a Guide

Tools

Error Decoder Assessment Baselines Free Tools Service status What's Changed

More

AI Certifications For MSPs Recommended Gear Field Kit FAQ About Contact Get Assessment

Search covers titles, summaries and types. Links like ?q=legacy, ?path=signin or ?path=signin.mfa open a filtered view. Category links such as #browse-securing-the-tenant still work. A situation filters the same list; a search or category chip clears it.

PageCategorySummary
Sign-in Error DecoderToolTroubleshooting sign-insPaste an AADSTS code from the Entra sign-in logs or an error page and see what it means and what to do next.
Common Sign-In Error CodesGuideTroubleshooting sign-insHow to investigate failed Microsoft Entra sign-ins: find the AADSTS error in the sign-in logs and understand what common codes mean and how to fix them.
Investigate a Sign-in with the Sign-in LogsGuideTroubleshooting sign-insRead one sign-in log entry: Basic info, Authentication details, Conditional Access and report-only results.
Troubleshooting Device Join & Hybrid JoinGuideTroubleshooting sign-insTroubleshoot Microsoft Entra device join and hybrid join issues using dsregcmd, device status, and common configuration or connectivity fixes.
Microsoft Entra Connect and Cloud Sync Health CheckGuideTroubleshooting sign-insConnect Health, the sync scheduler, stuck objects, duplicate attribute errors, and cloud sync quarantine.
Keep Microsoft Entra Sign-in and Audit Logs Longer with Log AnalyticsGuideTroubleshooting sign-insDefault retention is 7 or 30 days. Send sign-in and audit logs to a Log Analytics workspace with a diagnostic setting so you still have them when an incident surfaces weeks later, and query them with KQL.
AADSTS50076 — MFA requiredError codeError codesAADSTS50076 means Microsoft Entra ID requires MFA for this sign-in. See why it appears in the logs and how users and admins should handle it.
AADSTS50079 — MFA enrollment requiredError codeError codesAADSTS50079 means the user must register security info for MFA before they can sign in. See how users enroll a method and how an admin can help.
AADSTS50126 — Invalid username or passwordError codeError codesAADSTS50126 means Microsoft Entra ID rejected the username or password. See when a typo is normal and when a burst of failures is a warning.
AADSTS50053 — Account locked or flagged IPError codeError codesAADSTS50053 means the account is locked by Smart Lockout, or the sign-in came from a flagged IP. Check the failure reason, then unlock or investigate.
AADSTS50057 — User account disabledError codeError codesAADSTS50057 means the user account is disabled in Entra ID or in the on-premises directory that syncs it. See when to re-enable it and when that is expected.
AADSTS53003 — Blocked by Conditional AccessError codeError codesAADSTS53003 means a Conditional Access policy blocked token issuance. See how to find the policy in the Entra sign-in logs and what to change.
AADSTS53000 — Device not compliantError codeError codesAADSTS53000 means a Conditional Access policy requires a compliant device, and this one is not compliant or not enrolled. See how to fix it.
AADSTS530003 — Device must be managedError codeError codesAADSTS530003 means a Conditional Access device requirement was not met, often from Azure CLI or PowerShell on an unmanaged, non-compliant device.
AADSTS50105 — User isn't assigned to the appError codeError codesAADSTS50105 means the signed-in user is not assigned to the enterprise app, and the app requires assignment. See how to assign a user or group.
AADSTS65001 — Consent hasn't been grantedError codeError codesAADSTS65001 means the user or an admin has not consented to the permissions the app is requesting. See how to grant user or admin consent to continue.
AADSTS700016 — Application not found in the tenantError codeError codesAADSTS700016 means the application (client ID) was not found in this tenant. See how to check the client ID and tenant, and when to add the app.
AADSTS50020 — Account doesn't exist in this tenantError codeError codesAADSTS50020 means the signed-in account does not exist in this tenant, so it cannot use the app here. See how to invite a guest or pick the right account.
AADSTS50034 — User account not foundError codeError codesAADSTS50034 means the account is not in this directory. Check the username and tenant, and invite the person as a guest if they should have access.
AADSTS50055 — Password expiredError codeError codesAADSTS50055 means the user password has expired, so the sign-in or session ended. See how the user can reset it and how an admin can help them sign in again.
AADSTS50058 — No session for single sign-onError codeError codesAADSTS50058 means there was not enough session information for single sign-on, usually because the user is not signed in yet. See when this is expected.
AADSTS50074 — MFA challenge not completedError codeError codesAADSTS50074 means MFA was required and the user did not complete the challenge. See how to check the method and what to do if the prompts were unexpected.
AADSTS50158 — External security challengeError codeError codesAADSTS50158 means an external security challenge is not satisfied yet, such as a third-party MFA provider or terms of use. It is not always a failed sign-in.
AADSTS50140 — Keep me signed inError codeError codesAADSTS50140 means the Keep me signed in prompt interrupted the sign-in. It is an expected part of the flow, not usually a failed sign-in that needs a fix.
AADSTS53001 — Device not hybrid joinedError codeError codesAADSTS53001 means a Conditional Access policy requires a Microsoft Entra hybrid joined device, and this device is not. See how to check join status.
AADSTS70043 — Sign-in frequency ended the sessionError codeError codesAADSTS70043 means the refresh token expired or is invalid because of a Conditional Access sign-in frequency check. The user needs to sign in again.
AADSTS90094 — Admin consent requiredError codeError codesAADSTS90094 means an administrator must consent to the permissions the app is requesting. See how to review consent or use the admin consent workflow.
AADSTS7000218 — Missing client secret or assertionError codeError codesAADSTS7000218 means the token request did not include a client_secret or client_assertion. See when to allow public client flows or send a secret.
AADSTS7000215 — Invalid client secretError codeError codesAADSTS7000215 means the app sent an invalid client secret. This is usually a configuration error: create a new secret or certificate and update the app.
AADSTS50011 — Reply URL does not matchError codeError codesAADSTS50011 means the reply (redirect) URL is missing, misconfigured, or does not match a URL registered for the app. See how to align the two.
AADSTS50072 — MFA enrollment required (interrupt)Error codeError codesAADSTS50072 means the user needs to enroll for multifactor authentication. See how to complete registration and how an admin can help a new user enroll.
AADSTS50097 — Device authentication requiredError codeError codesAADSTS50097 means device authentication is required. See when this is an expected interrupt and what to check if the sign-in does not continue.
AADSTS50133 — Session invalid after a password changeError codeError codesAADSTS50133 means the session is no longer valid because the password expired or was recently changed. See how to sign in again with the new password.
AADSTS50173 — Grant expired or revokedError codeError codesAADSTS50173 means the provided grant expired because it was revoked, so a fresh token is needed. Often the user changed or reset their password.
AADSTS54005 — Authorization code already redeemedError codeError codesAADSTS54005 means the OAuth2 authorization code was already redeemed. The app should retry with a new code, or use an existing refresh token.
AADSTS70011 — Scope isn't validError codeError codesAADSTS70011 means the scope in the token request is missing or is not a valid Microsoft identity platform scope. This is an app configuration issue.
AADSTS700054 — ID token isn't enabled for the appError codeError codesAADSTS700054 means the app requested an ID token, but ID token implicit grant is not enabled on the app registration. See how to enable it or use another flow.
AADSTS500011 — Resource principal not foundError codeError codesAADSTS500011 means the resource (API) the app requested was not found in this tenant. It may not be added or consented, or the request went to the wrong tenant.
AADSTS16000 — Account isn't in this tenant, or more than one account is availableError codeError codesAADSTS16000 is an InteractionRequired interrupt: the chosen account may not exist in this tenant, or more than one account was available. See how to continue.
AADSTS53002 — App isn't an approved client appError codeError codesAADSTS53002 means the app used is not an approved client app for Conditional Access. See how to find the policy and which app the user should use.
AADSTS90072 — External account can't satisfy this tenant's MFAError codeError codesAADSTS90072 means the external account is not in this tenant, so the user cannot satisfy its MFA requirements. It can also indicate an ImmutableID mismatch.
AADSTS500121 — MFA prompt wasn't completedError codeError codesAADSTS500121 means authentication failed during the strong authentication request because the MFA prompt was not completed. See the logs and how to help.
AADSTS50125 — Password reset or registration interrupted sign-inError codeError codesAADSTS50125 means sign-in was interrupted by a password reset or password registration entry. See what the user should do next and how an admin can help.
AADSTS50129 — Device isn't workplace joinedError codeError codesAADSTS50129 means the device is not workplace joined, and workplace join is required to register it. See what users and admins should check next.
AADSTS50131 — Conditional Access failedError codeError codesAADSTS50131 means Conditional Access failed. Microsoft lists several possible reasons, so use the sign-in logs to see the device state or policy that applied.
AADSTS50155 — Device authentication failedError codeError codesAADSTS50155 means device authentication failed for this user. Microsoft does not publish a more specific cause, so use the sign-in log and device record.
AADSTS50199 — User confirmation requiredError codeError codesAADSTS50199 means user confirmation is required for this request. Officially this is often a security interrupt, not a failure: confirm the intended app.
AADSTS53004 — MFA registration blocked by riskError codeError codesAADSTS53004 (ProofUpBlockedDueToRisk) means MFA registration was blocked due to risk or suspicious activity. See the official messages and what to check next.
Is your tenant EntraReady?ToolSecuring the tenantA 15-question self-assessment for Microsoft 365 and Entra ID. Answer honestly, get a score, and see exactly what to fix first.
Ready-to-use BaselinesTemplatesSecuring the tenantCopyable starting points for Conditional Access, Intune, privileged access, and related Microsoft 365 identity settings.
Conditional Access BaselineGuideSecuring the tenantSet up a Conditional Access baseline for Microsoft 365: what to do first, a practical policy set, and how to roll it out without locking users out.
Blocking Legacy AuthenticationGuideSecuring the tenantBlock legacy authentication in Microsoft 365 safely: find leftover IMAP, POP, and older clients, then enforce the block without locking people out.
Phishing-Resistant MFA with Hardware KeysGuideSecuring the tenantRoll out FIDO2 security keys to admins and high-value users with an attested, device-bound passkey profile, then enforce the Phishing-resistant MFA strength in Conditional Access without locking anyone out.
Move Off Per-User MFA and the Legacy MFA/SSPR PoliciesGuideSecuring the tenantMove sign-in methods from the legacy MFA and SSPR settings to the Authentication methods policy, and retire per-user MFA.
Temporary Access Pass for Onboarding and RecoveryGuideSecuring the tenantA time-limited pass so new hires and locked-out users can register passkeys or Authenticator.
Roll Out Passkeys in Microsoft AuthenticatorGuideSecuring the tenantPilot device-bound passkeys in Microsoft Authenticator with passkey profiles, then enforce them.
Self-Service Password Reset with Password WritebackGuideSecuring the tenantLet users reset their own passwords and write them back to on-premises AD.
Stop MFA Push Fatigue: Number Matching and Reporting Suspicious PromptsGuideSecuring the tenantNumber matching, app name and location in prompts, and Report suspicious activity in Authenticator.
Named Locations and Blocking Countries in Conditional AccessGuideSecuring the tenantDefine office IP ranges and countries, then block sign-ins from countries you never use, report-only first.
Dynamic Membership Groups in Microsoft Entra IDGuideSecuring the tenantWrite, validate and roll out user and device membership rules safely, convert static groups without surprise removals, and fix groups that stop updating.
Find and Clean Up Inactive User AccountsGuideSecuring the tenantReport last successful sign-in for every account, pick a safe inactivity window, then disable, review and delete without losing a recoverable user.
Investigate and Remediate Risky Users and Risky Sign-ins with ID ProtectionGuideSecuring the tenantTriage the ID Protection risk reports, decide between confirm compromised, confirm safe and dismiss, remediate or unblock the user, and move to risk-based Conditional Access.
Set Up DKIM and DMARC for Exchange Online Custom DomainsGuideSecuring the tenantCheck SPF, publish the two DKIM CNAMEs and turn on signing in the Defender portal, then roll DMARC from p=none to p=reject without blocking good mail.
How AI Platforms Connect to Microsoft 365 and Entra IDGuideSecuring the tenantThe five ways AI tools, Copilot and agents reach your Microsoft 365 data: Graph apps, Copilot connectors and plugins, Entra Agent ID, MCP servers and flows. For each: which identity it runs as, how to narrow it, where it's logged and how to switch it off.
FIDO2 Security Keys vs Microsoft Authenticator: Which MFA Method?GuideSecuring the tenantChoose between FIDO2 security keys, passkeys in Microsoft Authenticator, synced passkeys and Authenticator push for each group of users, based on what's phishing-resistant, attestable and practical to support.
Offboard a Departing User in Microsoft 365 and Microsoft Entra IDGuideSecuring the tenantCut off sign-in, keep the mailbox and OneDrive content you need, free the license, and delete the account last, in an order that doesn't lose data.
Block Device Code Flow with Conditional AccessGuideSecuring the tenantFind out who still signs in with device code flow, then block it with a report-only-first Conditional Access policy, without breaking device registration or the few devices that need it.
Protect MFA and SSPR Registration with Conditional AccessGuideSecuring the tenantStop an attacker with a stolen password from registering their own MFA method: require MFA or an authentication strength for the Register security information user action outside trusted locations, and use Temporary Access Pass for new hires.
Run a Registration Campaign to Move Users to Authenticator or PasskeysGuideSecuring the tenantNudge users who still use SMS or voice to set up Microsoft Authenticator, or nudge everyone toward passkeys, with the registration campaign: Microsoft managed vs Enabled, snooze limits, and a read-only check of the current setting.
Require Compliant DevicesGuideDevicesRequire compliant devices for Microsoft 365 using Intune compliance policies and Conditional Access, including how unassigned devices are treated.
Windows LAPS with IntuneGuideDevicesRotate and back up local admin passwords to Microsoft Entra ID with Intune, and control who can read them.
Clean Up Stale Devices in Microsoft Entra ID and IntuneGuideDevicesFind inactive devices, hide them in Intune, then disable and delete them safely in Microsoft Entra ID.
Troubleshoot Windows Autopilot EnrollmentGuideDevicesLogs, the diagnostics page, and fixes for common Windows Autopilot enrollment errors.
Intune Enrollment Restrictions: Platform, Ownership and Device LimitsGuideDevicesBlock personal devices, unsupported platforms and old OS versions at enrollment, cap devices per user, and understand which enrollments ignore your restrictions.
App Protection (MAM) Policies for iOS and AndroidGuideDevicesProtect work data in Outlook, Teams and Office on personal phones without enrolling them, using the data protection framework levels plus a Conditional Access policy that enforces it.
Turn On BitLocker for Windows Devices with Intune (Including Silent Encryption)GuideDevicesUse an endpoint security disk encryption policy to encrypt Windows devices silently, make sure recovery keys land in Microsoft Entra ID first, and find managed devices that still aren't encrypted.
Windows Update Rings in Intune: Pilot, Broad and Pause SafelyGuideDevicesBuild test, pilot and production update rings with sensible deferrals and deadlines, export what every ring is set to, and know exactly what Pause and Uninstall do before you need them.
Guest Access CleanupGuideGuests & appsClean up Microsoft Entra B2B guest access: find stale guests, restrict who can invite, and reduce the risk of old invitations still reaching your data.
Cross-Tenant Access Settings for B2B CollaborationGuideGuests & appsDefaults, partner organizations, and trusting partner MFA for B2B guests.
Lock Down SharePoint and OneDrive External SharingGuideGuests & appsSharing levels, Anyone link limits, default link type, and per-site exceptions.
Teams External Access vs Guest AccessGuideGuests & appsWhat Teams external access and guest access each allow, and how to limit both.
Recurring Access Reviews for GuestsGuideGuests & appsRecurring access reviews that remove guests nobody vouches for.
AI in Microsoft 365 and Entra IDAI sectionGuests & appsThe AI section: which identity an AI tool or agent runs as, what it can reach, how to scope it, where it is logged, and how to revoke it.
How AI Platforms Connect to Microsoft 365GuideGuests & appsHow AI platforms reach Microsoft 365 and Entra ID through Graph, Copilot connectors, agents, MCP, and flows, and how to scope, log, and revoke each one.
Limit what a delegated AI connector can reachGuide sectionGuests & appsSign delegated AI connectors in with a dedicated, tightly scoped account: licenses, memberships, consent, Conditional Access, monitoring, and revocation.
Microsoft MCP Server for Enterprise / IT AdminsGuide sectionGuests & appsMicrosoft MCP Server for Enterprise (preview), now MCP Server for IT Admins: tools, delegated permissions, setup, supported clients, Graph activity logs, and revocation.
Conditional Access Authentication Strength for Guests and External UsersGuideGuests & appsRequire a specific MFA strength, up to phishing-resistant, for guests and B2B users, and set cross-tenant MFA trust so they can actually meet it.
Restrict Who Can Create Microsoft 365 Groups and TeamsGuideGuests & appsLimit Microsoft 365 group (and so Teams, SharePoint team site and Planner) creation to one allowed group, check the current setting read-only first, and know which admins it doesn't stop.
Shared Mailboxes in Microsoft 365: Set Up, Secure and License Them CorrectlyGuideGuests & appsCreate shared mailboxes with the right permissions, keep their sign-in blocked, know when a license is required, and find shared mailboxes that can still be signed in to.
Too Many Global AdminsGuideAdmin rolesReduce Global Administrators in Entra ID to fewer than five, move people to least-privilege roles, and lower the risk of a full tenant takeover.
Privileged Identity Management for Admin RolesGuideAdmin rolesMake admins eligible instead of permanently active, with MFA, justification or approval to activate.
Break-Glass / Emergency Access AccountsGuideAdmin rolesSet up two cloud-only emergency access (break-glass) accounts with phishing-resistant MFA, excluded from Conditional Access lockouts, in Microsoft Entra ID.
Microsoft Entra Password Protection: Custom Banned Passwords and On-Premises ADGuideSecuring the tenantAdd your company's own weak terms to the banned password list, then extend the same check to on-premises domain controllers in audit mode before you enforce it.
Block Automatic External Email Forwarding in Exchange OnlineGuideSecuring the tenantSet the outbound spam policy to Off instead of Automatic, find who is forwarding today, and allow only the few mailboxes that really need it.
Security Defaults vs Conditional AccessDecision guideDecision guidesSecurity Defaults vs Conditional Access in Entra ID: what each one enforces, the licenses you need, and how to choose the right option for your tenant.
FIDO2 Keys vs Microsoft AuthenticatorDecision guideDecision guidesCompare FIDO2 security keys and Microsoft Authenticator for Entra ID MFA: phishing resistance, cost, recovery, and when to use each.
Free Tools for Lean TeamsResourceFree & MSP resourcesA practical list of free and free-tier tools for solo admins, small IT teams, and small MSPs.
Useful scriptsScriptsFree & MSP resourcesOfficial Microsoft Graph and Entra PowerShell samples for Conditional Access, MFA, admin roles, and related Entra ID admin tasks.
For MSPsResourceFree & MSP resourcesPractical guidance and copyable templates for managed service providers: least-privilege partner access, Lighthouse, consistent baselines, and a repeatable onboarding checklist.
What's ChangedChange logFree & MSP resourcesMicrosoft Entra and Microsoft 365 identity changes that affect your tenant: what changed, why it matters, and the official source.
Export Conditional Access policiesOfficial sampleUseful scriptsBackup CA policies and see inclusions and exclusions without clicking through the portal.
Export sign-in logsOfficial sampleUseful scriptsExport sign-ins with Conditional Access status, failure reasons, and client app, then filter the CSV.
MFA and authentication methods registration reportOfficial sampleUseful scriptsSee who still has no MFA method registered before you tighten Conditional Access.
Inactive user accountsOfficial sampleUseful scriptsFind accounts, including external users, that have not signed in for a long time.
Export apps with expiring secrets and certificatesOfficial sampleUseful scriptsList app registrations whose secrets or certificates expire soon, before they cause an outage.
List Global Admins and privileged role assignmentsOfficial sampleUseful scriptsSee who currently holds Global Administrator and other directory roles.
License assignment reportOfficial sampleUseful scriptsSee which licenses are consumed and which user has which service plan.
Per-user MFA state reportOfficial sampleUseful scriptsSee who is still enabled or enforced for per-user MFA when you move to Conditional Access.
PIM eligible and active role assignmentsOfficial sampleUseful scriptsList who can activate a privileged role in PIM, not only who currently holds it.
Intune device report exportOfficial sampleUseful scriptsExport Intune devices, including compliance state, to support compliant-device Conditional Access.
Password expiration reportOfficial sampleUseful scriptsSee whose password is expired or about to expire.
Export named locationsOfficial sampleUseful scriptsList the IP ranges and countries your Conditional Access policies use as named locations.
Check whether security defaults are onOfficial sampleUseful scriptsRead the security defaults policy and see if IsEnabled is true.
Export tenant authorization settings (who can invite guests, guest role)Official sampleUseful scriptsSee who can invite guests, what role guests get, and the default user permissions.
Export cross-tenant access settings (default and partners)Official sampleUseful scriptsList the default inbound/outbound B2B settings and every partner organization you configured.
Export the Authentication methods policyOfficial sampleUseful scriptsSee which sign-in methods are enabled and for whom, before and after a migration.
List one user's registered authentication methodsOfficial sampleUseful scriptsSee what a user has registered (Authenticator, phone, passkey and so on) before you reset or troubleshoot MFA.
List directory role definitions, including custom rolesOfficial sampleUseful scriptsSee every built-in and custom Microsoft Entra role and its permissions.
Export directory audit logsOfficial sampleUseful scriptsFind who changed a user, group, app, role or policy, and when.
Risky users reportOfficial sampleUseful scriptsList users Microsoft Entra ID Protection flags as risky, with risk level and state.
Risk detections exportOfficial sampleUseful scriptsList the individual risk detections (for example unfamiliar sign-in properties) behind risky users and sign-ins.
Guest users reportOfficial sampleUseful scriptsList every guest with when they were created and whether they accepted the invitation.
List deleted users you can still restoreOfficial sampleUseful scriptsSee users deleted in the last 30 days, before they're permanently removed.
Groups and their owners (find ownerless groups)Official sampleUseful scriptsCount owners per group so you can find groups nobody owns.
Application permissions granted to an appOfficial sampleUseful scriptsList the application (app-only) permissions granted to one service principal.
App registration ownersOfficial sampleUseful scriptsList who owns an app registration, so expiring secrets and consent questions have someone to go to.
Stale devices report (activity timestamp)Official sampleUseful scriptsExport devices that haven't signed in for 90 days, before you disable anything.
List BitLocker recovery keys for a deviceOfficial sampleUseful scriptsFind the BitLocker recovery key IDs stored for a device, and read a key when you need it.
Export Intune compliance policiesOfficial sampleUseful scriptsList your Intune device compliance policies so you can review or back them up.
List Windows Autopilot devicesOfficial sampleUseful scriptsExport the devices registered for Windows Autopilot.
List Intune managed devicesOfficial sampleUseful scriptsExport Intune managed devices with their compliance state and last check-in.
Groups and users with license errorsOfficial sampleUseful scriptsFind groups whose members have group-based licensing errors, then the users in error.
Import an Intune compliance policy from JSONOfficial sampleUseful scriptsCreates a device compliance policy from a previously exported JSON file.
Assign Microsoft 365 licensesOfficial sampleUseful scriptsAssign licenses to user accounts with Microsoft Graph PowerShell.
Update per-user MFA stateOfficial sampleUseful scriptsChange a user's per-user MFA state with Microsoft Entra PowerShell.
Create a Temporary Access Pass for a userOfficial sampleUseful scriptsIssue a time-limited pass so a user can sign in and register Authenticator or a passkey.
Revoke a user's sign-in sessionsOfficial sampleUseful scriptsInvalidate a user's refresh tokens and browser session cookies after a compromise or departure.
Restore a deleted userOfficial sampleUseful scriptsBring back a user deleted in the last 30 days, with group memberships and licenses.
Disable stale devicesOfficial sampleUseful scriptsDisable devices with no activity for 90 days, after you reviewed the report.
Export authentication strength policiesScriptUseful scriptsList built-in and custom authentication strengths and the method combinations each one allows, before you use a strength in Conditional Access.
Users whose only MFA methods are SMS or voiceScriptUseful scriptsFrom the authentication methods registration report, list users who are MFA-registered but only appear to have phone-based methods, so you can move them to Authenticator or a passkey.
Directory role members who are guests or external usersScriptUseful scriptsList Microsoft Entra directory role assignments where the principal is a guest (userType = Guest) or otherwise external.
Pending PIM role activation requestsScriptUseful scriptsList Microsoft Entra role assignment schedule requests that are waiting for approval (status eq PendingApproval).
Export provisioning logsScriptUseful scriptsExport Microsoft Entra provisioning events (success, skip, and failure) for a date range, so you can see why a user or group was or wasn't provisioned.
Export dynamic membership groups and their rulesScriptUseful scriptsList Microsoft Entra dynamic membership groups, including each group's membership rule and whether rule processing is on.
Tenant-wide app role assignments (application permissions)ScriptUseful scriptsList app role assignments for every service principal in the tenant (application permissions granted app-only), not just one app.
Export Intune app protection (MAM) policiesScriptUseful scriptsList Intune app protection (MAM) policies in the tenant, including each policy's type, platforms, and last modified time.
Groups with assigned licensesScriptUseful scriptsList Microsoft Entra groups that have licenses assigned, including which SKUs each group assigns.
Disabled user accounts that still have licensesScriptUseful scriptsList sign-in blocked (accountEnabled eq false) users who still have assigned licenses, including whether the license came from a group.
Export a group's members, including nested groupsScriptUseful scriptsExport everyone in a group to CSV, either direct members only or the flattened (transitive) list that includes members of nested groups, with object type, UPN and user type.
List every group and role a user belongs to (including nested)ScriptUseful scriptsFor one or more users, export all groups, directory roles and administrative units they belong to directly or through nested groups, with group type, sync source and whether the group can hold roles.
Admins who aren't MFA-capableScriptUseful scriptsFrom the authentication methods registration report, list users with an admin role, sorted so admins who aren't MFA-capable come first, with their registered methods and preferred second factor.
App registrations with no ownerScriptUseful scriptsTenant-wide list of app registrations with their owner count and next credential expiry, so you can find apps nobody owns before a secret or certificate expires.
Directory sync status and objects with sync errorsScriptUseful scriptsCheck when the tenant last synced from on-premises AD, then list synced users and groups that have provisioning errors (duplicate UPN or proxy address conflicts) with the conflicting value.
Export Intune configuration profiles (templates and Settings catalog)ScriptUseful scriptsList Intune device configuration profiles with their type and last change, and optionally Settings catalog policies (beta API) with platform, setting count and whether they're assigned.
Export administrative units, their members and scoped adminsScriptUseful scriptsList every administrative unit with membership type, rule, restricted-management flag and member counts, plus who holds a role scoped to each unit.
License counts: purchased, assigned and free per SKUScriptUseful scriptsOne row per subscribed SKU with enabled, assigned (consumed) and remaining units, plus units in warning, suspended or locked-out state, so you can see free licenses and expiring subscriptions at a glance.
Remove direct licenses from disabled users (with -WhatIf)ScriptUseful scriptsFor sign-in-blocked users, remove directly assigned licenses (optionally only one SKU), skip group-assigned ones, and log every action. Run with -WhatIf first.
Block sign-in for a list of users from CSV (with -WhatIf)ScriptUseful scriptsRead a CSV of UPNs, skip accounts synced from on-premises AD, and set accountEnabled to false for the rest, logging each result. Run with -WhatIf first.
Conditional Access policy setBaselineBaselinesA nine-policy Conditional Access set for most small tenants, including two P2 risk policies.
Intune Windows compliance policyBaselineBaselinesA Windows compliance policy to pair with Conditional Access device requirements.
Privileged access checklistBaselineBaselinesA checklist for admin accounts, PIM, break-glass, app consent, and monitoring.
Block legacy authenticationBaselineBaselinesA Conditional Access policy that blocks Exchange ActiveSync and other legacy clients.
Require phishing-resistant MFA for adminsBaselineBaselinesA Conditional Access policy that requires the Phishing-resistant MFA authentication strength for privileged roles.
Risk-based sign-in and user riskBaselineBaselinesTwo Conditional Access policies that use Identity Protection sign-in risk and user risk.
Require a compliant or hybrid-joined deviceBaselineBaselinesA Conditional Access policy that requires a compliant or Microsoft Entra hybrid joined Windows or macOS device.
Require MFA for guest and external usersBaselineBaselinesA Conditional Access policy that requires multifactor authentication for guest and external users.
Break-glass / emergency access accountsBaselineBaselinesA baseline for two cloud-only emergency accounts with phishing-resistant MFA, Conditional Access exclusions, and sign-in monitoring.
Intune iOS/Android compliance and app protectionBaselineBaselinesCompliance policies for iOS/iPadOS and Android Enterprise, plus app protection (MAM) for Microsoft 365 apps.
Authentication methods policyBaselineBaselinesAuthenticator with number matching, passkeys (FIDO2), Temporary Access Pass for onboarding, and a plan to retire SMS and voice.
Guest and external collaboration settingsBaselineBaselinesA tighter starting point for who can invite guests, what guests can see, and how they sign in.
Security Defaults or Conditional Access starterBaselineBaselinesWhich path to take in a small tenant, and the first steps for each, without running both at once.
Certifications & LearningResourceLearningA practical path into Microsoft 365, Entra ID, and related IT roles: which Microsoft certifications matter, what each one is for, and free official study resources.
FAQ & Common PitfallsResourceLearningShort answers to the Entra ID and Microsoft 365 security questions that come up most for small organizations and lean IT teams.
Typical scenariosResourceLearningThree common starting points for small organizations and the MSPs who support them. Illustrative scenarios, not specific client results.
Hardware Security KeysGearRecommended gearFIDO2 hardware security keys for phishing-resistant MFA in Microsoft Entra ID: YubiKey, Feitian, Token2, Google Titan and accessories.
Endpoint ToolsGearRecommended gearEndpoint management tools that complement Microsoft Intune, plus provisioning hardware for Autopilot and Windows recovery.
Monitoring & AlertsGearRecommended gearMonitoring and alerting tools for infrastructure, applications, networks and devices, including open-source platforms, Microsoft Azure Monitor, and cloud services.
Field Kit for IT TechsGearRecommended gearFree Microsoft 365 and Intune mobile apps plus a recommended field kit for IT techs: cables, adapters, power, install media, cable tester, tools and security keys.