Επεξεργασία

Κοινή χρήση μέσω


Uninstall the classic Teams client using a script

Microsoft has an uninstallation script designed to uninstall the classic Teams client from all user profiles found on devices in your organization. This script can be run on all devices apart from Virtualized Desktop Infrastructure (VDI). If the classic Teams client is running for any user on the machine at the time the script is run, this script also ends the existing classic Teams running instance.

Using the script

Running the script on a single device

If you want to have the uninstallation script run for a single device, run it on that device in administrative mode. After you run the script, the classic Teams client is uninstalled from all user profiles of the specified device.

Running the script with device management software

If you need to have this uninstallation script run across all devices in your organization, run this script using device management software, like Intune. We have sample instructions for running the script in Intune.

If the script is run in Intune or other device management software:

  • Admins get results in the form of .JSON that indicates different parameters, like how many instances of classic Teams there are, how many have been uninstalled from devices, and so on.
  • Admins can download these results as a .CSV file.

Note

After the uninstallation of classic Teams, new Teams and Teams meeting add-in (TMA) might not work together. See this article for more information.

Teams meeting add-in issue resolution

Please check the Teams version using Find the version of Microsoft Teams you're using - Microsoft Support.

If version is below 24215.1007.3082.1590, then Microsoft has an additional script to prevent the TMA issue.

Note

If the new Teams client is running and the TMA issue is detected by this script, it can't fix the issue. If you need to have this TMA script run across all devices in your organization in user context, please refer to these sample instructions for running the script in Intune. (User context can be selected by setting Run this script using the logged-on credentials to Yes.)