Close Menu
    Facebook X (Twitter) Instagram
    Monday, July 14
    X (Twitter) LinkedIn
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»configmgr»How to collect Teams client logs for troubleshooting using Configuration Manager–Scripts

    How to collect Teams client logs for troubleshooting using Configuration Manager–Scripts

    Eswar KonetiBy Eswar KonetiNovember 09, 10:44 pm3 Mins Read configmgr 12,277 Views
    Share
    Facebook Twitter LinkedIn Reddit

    There are times where you need to troubleshoot the Microsoft Teams client issues such as app crashing, poor call quality, new features not working as expected, etc.

    When you get any of such issues, you will need to collect the team’s client logs to investigate further and if possible, you likely need to share the logs with the Microsoft support engineer for further help.

    There are different logs in Teams client that help you to troubleshoot the issue. The following are the important set of logs.

    •  Debug logs
    •  Media logs
    •  Desktop logs
    • Event viewer

    As the teams client installed in the user profile (%appdata%), the log collection needs to be done from the user profile. so you need to request user and assist them to get these logs.

    These common logs located in different folders under the user profile and guiding the user for these logs would take longer and sometimes get annoyed.

    Except for Debug logs, all other logs are readily available for remote collection.

    Debug logs is something that needs user intervention (not possible remotely) and the user needs to press shortcut Ctrl + Alt + Shift + 1 to generate the debug logs.

    image

    For more information about the log files and troubleshooting Teams client, please refer https://docs.microsoft.com/en-us/microsoftteams/log-files 

    From this article, we know the location of the Teams log files, we can make use of Microsoft Endpoint Manager Configuration Manager scripts feature to collect the client logs for troubleshooting the teams issue remotely.

    The scripts feature simplify building custom tools to administer software and let you accomplish mundane tasks quickly, allowing you to get large jobs done more easily and more consistently. For more information about PowerShell scripts from Configuration Manager Admin console, please refer here

    This script can be used manually or remotely using Configuration Manager.

    What does this script do?

    1. The script check if the user logged into the machine or not, if yes, then collect the media logs, desktop logs,debug logs and event viewer from the locations and store it in C:\Temp\Teamslog

    2.If no user logged into the machine , the script does nothing.

    3. Once the logs are collected and store it on the share drive, the temp logs from local drive C:\temp\teamslog will be removed.

    What is required to run the script?

    1. You will need to provide the log share name to store the logs. The logs are zip and store it with username-timestamp.zip.

    2. You will need notify user to use the shortcut Ctrl + Alt + Shift + 1 to generate debug logs. Once this is done, the script will look for the debug logs and collect it.

    3. If user don’t run the Ctrl + Alt + Shift + 1, the script will not collect the debug logs but collect other logs if available.

    Once you have filled in the log share, you can use take this script and use it in Configuration Manager scripts and run it on device where user logged for the log collection.

    image

    image

    image

    The script is uploaded to github, you can download it from here.

    For teams client troubleshooting, please refer https://docs.microsoft.com/en-us/MicrosoftTeams/troubleshoot/teams-welcome

    application logs client logs configmgr debug logs desktop logs event viewer media logs MEMCM SCCM script teams teams crash troubleshooting Microsoft Teams
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Optimize Your Intune Workflow with a Powerful Browser Extension

    March 22, 10:39 am

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    4 Comments

    1. Pingback: teams logs for troubleshooting all - logindataworld

    2. Pingback: collect teams logs - trustrose.com

    3. Pingback: get teams debug logs - infobuffer.net

    4. Pingback: how to get teams logs - infoslist.com

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2024 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.