Miscellaneous topics that do not fit into specific categories.
Error code 895156191 indicates a sign-in failure that is specific to that device rather than to the account or service, since the same credentials work on other systems.
Follow these steps on the problematic PC:
- Capture and share the status/error code with IT admin
In Microsoft 365/Teams or other Microsoft apps, note the full error/status code shown at sign-in and share it with the organization’s IT admin. Many sign-in issues can only be resolved by the admin because they involve domain, device, or tenant configuration. - Check device compliance and access policies
If the organization enforces device-based access (for example via Microsoft Entra or Intune), the device may be:- Marked as disabled or deleted in Microsoft Entra ID.
- Marked as not compliant with policy.
- Verify in Microsoft Entra admin center that the device is present and enabled. If it shows as disabled with errors like
AADSTS135011: Device used during the authentication is disabled, the device must be re-enabled. - If logs show
AADSTS50155: Device is not authenticated, perform device recovery as per the documented manual recovery steps (for example, usingdsregcmd /statusanddsregcmd /leavefollowed by a restart, depending on whether the device is Entra hybrid joined, Entra joined, or only has a work account added).
- Check for compliance errors on the device
If a message such as “Device is not compliant” or “Try signing in another way” appears when accessing internal apps:- Ensure the device is properly joined to the organization’s network and domain as required by policy.
- Sign in to Windows with the work or school account, connect to the corporate network (VPN/DirectAccess if remote), lock the device (Windows logo key+L), unlock with the same account, and retry access.
- If the error appears on a Microsoft cloud sign-in page (login.microsoftonline.com)
For a browser-based sign-in error like “Sorry, but we’re having trouble signing you in” on that PC only:- Identify the detailed error code from the sign-in page source (search for
HR=in the HTML as documented). - Provide that code to technical support or the IT admin so they can look it up in the known error codes list and apply the corresponding fix.
- Identify the detailed error code from the sign-in page source (search for
- Escalate to Microsoft support if device cannot be recovered
If the device object cannot be re-enabled or recovered (for example, it was deleted and manual recovery fails), the admin should open a support request with Microsoft, providing:- The device details (name, join type, user, and sample error from Event Viewer or sign-in logs).
- The exact error code and correlation IDs from the failing sign-in.
These steps focus on validating that the affected PC is correctly registered, enabled, compliant, and trusted by Microsoft Entra ID and any conditional access policies, which is the typical root cause when sign-in works on other devices but fails on one specific machine.
References:
- Why am I having trouble signing in to Microsoft Teams?
- "Sorry, but we're having trouble signing you in" when a user signs in to Microsoft 365, Azure, or Intune
- Connection issues when signing in after updating to Office 2016 build 16.0.7967 on Windows 10
- Troubleshooting compliance error messages for a work or school account
- Signing in to Office 365, Azure, or Intune by using single sign-on doesn't work from some devices