How to Fix Error in Signing into Office 365 Perfectly

admin | September 21st, 2017 | MS Office 365

At the point when a client tries to sign into a Microsoft cloud service, for example, Office 365 from a sign-in website page whose URL begins with “https://login.microsoftonline.com/login.srf,” the client gets an error message and can’t sign in.

Here is the case of an error message that the user may get:
Sorry, but we’re having trouble signing you in. Please try again in a few minutes. If this doesn’t work, you might want to contact your admin and report the following error: 80041034.

Problem in Signing into Office 365–Major Cause

This issue may happen when one of the below-given conditions is valid:

  • When the UPN has been transformed from its original value. A client’s UPN was upgraded, and old sign-in data was stored on the Active Directory Federation Services (ADFS) server.
  • The cases that are set up in the depending party trust with Azure Active Directory (Azure AD) return surprising information. This conduct may happen when the cases that are connected with the depending party trust are physically altered or expelled.

Can’t Sign in to Office 365 Account Issue–Solution

Solution 1:

On a Client PC that has the Azure Active Directory Module for Windows PowerShell introduced, take after these strides:

  1. Click Start, Go to All Programs, click Windows Azure Active Directory, right-click Windows Azure Active Directory Module for Windows PowerShell, and afterward click Run as Administrator.
  2. Execute the following command Next.

    connect-MSOLService

    Set-MsolUserPrincipalName -UserPrincipalName [CurrentUPN] -NewUserPrincipalName [NewUPN]

    [Note: In this command, [CurrentUPN] represents the user’s current user principal name (UPN), and [NewUPN]represents the user’s UPN that has a domain suffix that changed to the initial onmicrosoft.com domain.]

  3. Exit the Azure Active Directory Module for Windows PowerShell.
  4. Now Open the Azure Active Directory Module for Windows PowerShell once more, and after that run, the below-specified commands and press Enter after each command:

    connect-MSOLService

    Set-MsolUserPrincipalName -UserPrincipalName [CurrentUPN] -NewUserPrincipalName [NewUPN]

    [Note: In this command, [CurrentUPN] represents the UPN of the user after you run the command in step 2, and[NewUPN] is the original UPN.]

Solution 2:

The user can also try temporarily disabling Local Security Authority (LSA) credential caching on your AD FS servers.

  1. Log in to each ADFS servers and follow the steps:
    Click Win +R or go to Start >> Run. Enter regedit to open registry editor.
  2.  
    image1
     

  3. Navigate to following registry Key
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
  4.  
    image2
     

  5. Press right click on Lisa, then select New > DWORD (32 bit)
  6.  
    image3
     

  7. Put LsaLookupCacheMaxSize as the value name.
  8.  
    image4
     

  9. Select Modify after Right click on LsaLookupCacheMaxSize.
  10.  
    image5
     

  11. Make Sure that the Value data is set to 0, thereafter select ok.
  12.  
    image6
     

  13. Now try that the user can sign in successfully, once they can login, it is recommended to delete the key we have created so far. Right-click on the key and select Delete.
  14. Reboot all ADFS servers in your environment.

Conclusion

The user can use any of the above-mentioned solutions for resolving “Error in Signing into Office 365” issue very easily. The discussed manual methods will help you troubleshoot the error efficiently as these are the solutions for two basic cause of the problem.