Table of Contents
Here are two scripts to both install MS-Teams and Uninstall. In this scenario, the installation script caters to both a fresh install of MS-Teams and a clean-up of existing installations of teams before installing the Microsoft Wide Installer.
When upgrading MS-Teams or moving from MS-Teams Standalone to MS-Teams Wide Installer, the following issues can occur which this script addresses:
- User profiling – The C:\Users\<username>\AppData keeps the legacy teams profiling and causes issues.
- Legacy Installers – MS-teams have multiple legacy installers where it requires multiple types of uninstallation methods.
- Auto-Launch – MS-Teams doesn’t auto-launch after it’s been upgraded for existing users.
1. Clean & Install Microsoft Teams
2. Uninstall Microsoft Teams
3. Detection Method
The “Detection Method” stands as a vital element in the application deployment process within Microsoft Endpoint Configuration Manager (MECM). It determines the installation status of an application on a client device. To verify if a device already has the application, MECM relies on information from the detection method. This information could stem from a specific file, a registry key, or the output of a script.
Path: %ProgramFiles(x86)%\Teams Installer
File or Folder Name: Teams.exe
Property: Version
Operator: Greater than or equal to
Value: 1.5.0.33362
Installation behavior: Install for system
Logon Requirement: Whether or not a user is logged on
Installation program visibility: Hidden
b. Download Teams
The Microsoft Website serves as the primary resource for downloading the latest version of the MS-Teams Wide Installer, and it’s also the go-to place for accessing all the latest updates and changes related to Teams.