Entra ID sign-in error
AADSTS135011: Device used for sign-in is disabled
AADSTS135011 means the device used to sign in is disabled in Microsoft Entra ID. How to check why, and how to enable cloud and hybrid joined devices.
AADSTS135011
Device used during the authentication is disabled.
What it means
The device used for the sign-in is disabled in Microsoft Entra ID, and a disabled device cannot authenticate. Microsoft's device management pages do not name this code; we matched them to it by its message.
Fix it: tenant admins
- Find out why the device was disabled before you enable it.
- Enable it in the Microsoft Entra admin center: in
Entra ID > Devices > All devices, select the device and enable it from the toolbar. You need Intune Administrator or Cloud Device Administrator. - Microsoft Entra hybrid joined devices are enabled again at the next sync cycle. If an admin disabled the computer account in on-premises Active Directory, enable it there.
Fix it: the person signing in
- Contact your IT team to find out why the device was disabled.
Related codes
Microsoft sources
- Manage devices in Microsoft Entra ID
- Microsoft Entra device management FAQ
- Microsoft Entra authentication and authorization error codes (the full list)
- Microsoft's live lookup for 135011 (login.microsoftonline.com)
Find who is hitting AADSTS135011
Sign-in logs record the code without the AADSTS prefix: as status/errorCode in Microsoft Graph S04 and as ResultType in the SigninLogs table in Log Analytics S05. The SigninLogs and Microsoft Graph queries below cover interactive sign-ins. Non-interactive sign-ins are in the AADNonInteractiveUserSignInLogs table, which documents the error code in ResultSignature S41. If you query that table, test ResultType as well. For one failed sign-in, paste its error message into the lookup to get queries for its Correlation ID.
Log Analytics (KQL), last 7 days
SigninLogs
| where TimeGenerated > ago(7d) and ResultType == "135011"
| summarize Failures = count(), Last = max(TimeGenerated) by UserPrincipalName, AppDisplayName
| sort by Failures descMicrosoft Graph PowerShell, last 7 days
Connect-MgGraph -Scopes "AuditLog.Read.All"
$since = (Get-Date).ToUniversalTime().AddDays(-7).ToString("yyyy-MM-ddTHH:mm:ssZ")
Get-MgAuditLogSignIn -Filter "status/errorCode eq 135011 and createdDateTime ge $since" -All |
Select-Object CreatedDateTime, UserPrincipalName, AppDisplayName, CorrelationIdReading sign-in logs needs at least the Reports Reader role S06; the Graph call needs the AuditLog.Read.All permission S42, and -All returns every page of results S69.
Sources for this page
Microsoft's description is quoted from the Microsoft Entra error code reference; it is Microsoft's text and is not covered by our CC BY 4.0 licence. The cause and fix steps are our own wording, published under CC BY 4.0; each source below is the Microsoft page they rest on, with the passage we checked. Rules for every page are in the methodology.
S01. Microsoft (Microsoft Learn), Microsoft Entra authentication and authorization error codes. Retrieved 2026-11-25.
Device used during the authentication is disabled.
Error codes are subject to change at any time in order to provide more granular error messages
Error codes and messages are subject to change. For the most current info, take a look at the
You can also link directly to a specific error by adding the error code number to the URL
S60. Microsoft (Microsoft Learn), Manage devices in Microsoft Entra ID using the Microsoft Entra admin center. Retrieved 2026-11-25.
You must be an Intune Administrator or Cloud Device Administrator to enable or disable a device.
Disabling a device prevents it from authenticating via Microsoft Entra ID.
S61. Microsoft (Microsoft Learn), Microsoft Entra device management FAQ. Retrieved 2026-11-25.
If the device was disabled in Microsoft Entra ID, an administrator with sufficient privileges can enable it in the Microsoft Entra admin center.
Microsoft Entra hybrid joined devices will be automatically re-enabled during the next sync cycle.
An administrator disables the computer account on premises, resulting in the device being disabled in Microsoft Entra ID.
S62. Microsoft (Microsoft Learn, Power Automate), Resolve Power Automate Broken Connections. Retrieved 2026-11-25.
Contact the tenant administrator to understand why the device was disabled.
S04. Microsoft (Microsoft Learn, Microsoft Graph), signIn resource type. Retrieved 2026-11-25.
Supports $filter (eq) on errorCode property.
The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity.
S05. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference - SigninLogs. Retrieved 2026-11-25.
Provides the 5-6 digit error code that's generated during a sign-in event. 0 indicates success; other values are failures.
The identifier that's sent from the client when sign-in is initiated.
S06. Microsoft (Microsoft Learn), How to troubleshoot sign-in errors. Retrieved 2026-11-25.
Reports Reader is the least privileged role required to access the activity logs.
any user can access their own sign-ins from https://mysignins.microsoft.com.
S41. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference - AADNonInteractiveUserSignInLogs. Retrieved 2026-11-25.
Contains the error code, if any, for the sign-in operation.
S42. Microsoft (Microsoft Learn, Microsoft Graph), List signIns. Retrieved 2026-11-25.
To avoid having the request time out, apply the $filter parameter with a time range for which to get all sign-ins
Sign-ins that are interactive in nature
S69. Microsoft (Microsoft Learn, Microsoft Graph PowerShell), Get-MgAuditLogSignIn (Microsoft.Graph.Reports). Retrieved 2026-11-25.
-All List all pages.
