Error 58tm1 with Microsoft Office products

Maksymilian Zaczek 40 Reputation points
2026-08-31T13:37:25.01+00:00

Hello,

Following a reinstallation of the operating system on the user's device, the user is unable to sign in to Microsoft applications. The error occurs every time the user attempts to authenticate.

Troubleshooting performed so far:

  1. Disconnected and reconnected the Work or School account.
  2. Rebooted the device.
  3. Uninstalled Microsoft Teams and removed the following folders before reinstalling:
    • %appdata%\Microsoft\Teams
    • %localappdata%\Microsoft\Teams
    • %localappdata%\Microsoft\OneAuth
    • %localappdata%\Microsoft\TokenBroker
    • %localappdata%\Microsoft\IdentityCache
    • %localappdata%\Microsoft\EdgeWebView\User Data
    • %localappdata%\Packages\MSTeams_8wekyb3d8bbwe
      1. Removed Microsoft-related credentials from Credential Manager.
      2. Performed an Office 365 Quick Repair.
  4. Re-registered the AAD Broker Plugin using the following script: if (-not (Get-AppxPackage Microsoft.AAD.BrokerPlugin)) {Add-AppxPackage -Register “$env:windir\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\Appxmanifest.xml” -DisableDevelopmentMode -ForceApplicationShutdown}
  5. Unregister device via entra

User's image

Best regards,

[Moderator note: Personally Identifiable Information removed]

Microsoft Teams | Microsoft Teams for business | Sign up and Sign in | Sign in
0 comments No comments

2 answers

Sort by: Newest
  1. Maksymilian Zaczek 40 Reputation points
    2026-09-02T12:50:36.5466667+00:00

    Hi Alina,

    Thank you for your assistance.

    I have resolved the issue by creating a new home directory and migrating the user profile to it.

    It seems that some files in the AppData folder were corrupted, which was causing the issue.

    Have a nice day!

    Was this answer helpful?


  2. Alina Le 4,920 Reputation points Independent Advisor
    2026-08-31T15:04:03.9033333+00:00

    "I can see that your question and the provided image contain two languages. As this is an English (en-US) forum, I will respond in English. If you would prefer to continue our conversation in another language, please let me know."

    Hello Maksymilian,

    Based on your description, the affected user is unable to sign in to Microsoft applications after a Windows operating system reinstallation. The issue appears during authentication and returns the error:

    Something went wrong [58tm1]

    To support you, I need more information: 

    1/ Does the same sign-in error occur in other Microsoft applications such as Outlook, Word, Excel, or OneDrive, or is it limited to Teams only?

    To determine whether this is a Microsoft-wide authentication issue or a specific application issue:

    2/ Are you able to sign in successfully through the Microsoft 365 portal, Outlook on the web, or Teams on the web using the same account?

    3/ Could you share a screenshot of the full error window, including the troubleshooting details section?

    Please remove or mask any personal information before posting the screenshot publicly.

    4/ Is this affecting only this user, or are other users within the same organization experiencing similar sign-in issues?

    5/ After reinstalling Windows, was the device successfully rejoined or registered again with Microsoft Entra ID (Azure AD)?


    Along the way, I'd like to share a few troubleshooting steps and some screenshots I prepared to help you check whether they can identify the cause of this behavior. 

    1/ Verify Device Registration Status

    Since the issue started after a Windows reinstallation, validating the device registration status is the most important next step.

    Open Command Prompt as Administrator and run:

    dsregcmd /status

    Please review the following values::

    AzureAdJoined : YES

    AzureAdPrt : YES

    If either value shows: No

    it may indicate that Windows cannot obtain the authentication token required by Microsoft 365 applications, which can result in sign-in failures similar to error 58tm1.

    2/ Test with a New Windows Profile

    Create a temporary local Windows user profile:

    Settings -> Accounts -> Other Users -> Add account

    Sign in to the new profile and test: Teams/ Outlook/ Word using the same Microsoft 365 account.

    Note:

    • If sign-in works in the new profile, the original Windows profile may be corrupted.
    • If the issue persists in both profiles, the problem is more likely related to device registration or authentication services.

    Reference: Microsoft sign-in troubleshooting guidance

    Looking forward to hearing from you for further assistance.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.