Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

3,037,168

Downloads of v 1.0.2508703:

91,661

Last Update:

30 May 2025

Package Maintainer(s):

Software Author(s):

  • Microsoft Corporation

Tags:

teams office 365 chat collaboration

Microsoft Teams (new client) Bootstrapper (Machine-Wide Install)

  • 1
  • 2
  • 3

1.0.2508703 | Updated: 30 May 2025

Downloads:

3,037,168

Downloads of v 1.0.2508703:

91,661

Maintainer(s):

Software Author(s):

  • Microsoft Corporation

Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2508703

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Microsoft Corporation. The inclusion of Microsoft Corporation trademark(s), if any, upon this webpage is solely to identify Microsoft Corporation goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

It requires at least Windows 10 version 10.0.19041 (which is newer than the test environment)

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Microsoft Teams (new client) Bootstrapper (Machine-Wide Install), run the following command from the command line or from PowerShell:

>

To upgrade Microsoft Teams (new client) Bootstrapper (Machine-Wide Install), run the following command from the command line or from PowerShell:

>

To uninstall Microsoft Teams (new client) Bootstrapper (Machine-Wide Install), run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade microsoft-teams-new-bootstrapper -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade microsoft-teams-new-bootstrapper -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install microsoft-teams-new-bootstrapper
  win_chocolatey:
    name: microsoft-teams-new-bootstrapper
    version: '1.0.2508703'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'microsoft-teams-new-bootstrapper' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '1.0.2508703'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller microsoft-teams-new-bootstrapper
{
    Name     = "microsoft-teams-new-bootstrapper"
    Version  = "1.0.2508703"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'microsoft-teams-new-bootstrapper':
  ensure   => '1.0.2508703',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved as a trusted package on 30 May 2025.

Description

The Teams installer installs the Teams MSIX package on a target computer, making sure that Teams can interoperate correctly with Office and other Microsoft software.

TeamsBootstrapper is a lightweight online installer with a headless command-line interface. It allows admins to provision (install) the app for all users on a given target computer.

When TeamsBootstrapper is run on a computer:

  • The installer downloads the latest Teams MSIX package from Microsoft
  • The installer installs the Teams application for all users on the computer, and any users who may be added afterwards.

Users who have installed a different Teams version will have their version replaced with the provisioned version.

Package Parameters

  • /VDI - The package will install the Teams Meeting Add-in for all users

Package Specific

Note that TeamsBootstrapper.exe will cause the the latest Teams MSIX package to be installed from Microsoft. Once Teams is installed it is self-updating. As such there's likely no need to install updates of this Chocolatey package.

The package version is based on the 'product version' property of TeamsBootstrapper.exe


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';
$toolsDir     = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$minimumOsVersion = "10.0.19041" # 20H1
$osVersion = (Get-CimInstance Win32_OperatingSystem).Version
if ([Version] $osVersion -lt [version] $minimumOsVersion) {
  Write-Error "Microsoft Teams New Client requires a minimum of Windows 10 20H1 version $minimumOsVersion. You have $osVersion"
}

$checksum32 = 'C9D1C68B1F9048E6D04BC4313A4036F91C255DF0988C4D876F687B5C1140440D'
$downloadPath = Join-Path $toolsDir "teamsbootstrapper.exe"

$pp = Get-PackageParameters

$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  softwareName  = 'microsoft-teams-new-bootstrapper*'
  fileType      = 'exe'
  
  url           = "https://statics.teams.cdn.office.net/production-teamsprovision/lkg/teamsbootstrapper.exe"
  checksum      = $checksum32
  checksumType  = 'sha256'
  FileFullPath  = $downloadPath
}

Get-ChocolateyWebFile @packageArgs

& $downloadPath -p

if($pp['VDI']){

  $regHive = "HKLM:\SOFTWARE\Microsoft\Teams"
  if (-not (Test-Path $regHive)) {
    New-Item -Path $regHive 
  }
  New-ItemProperty -Path $regHive -Name IsWVDEnvironment -Value 1 -PropertyType DWord

  $teamsVersion = Get-AppXPackage -Name "*msteams*" | Select-Object -ExpandProperty Version
  # Check if $teamsVersion is empty and attempt an alternative method if so
  if (-not $teamsVersion) {
      # Retrieve the newest Teams folder based on LastWriteTime
      $teamsFolders = Get-ChildItem -Path "C:\Program Files\WindowsApps\" -Filter "MSTEAMS*" -Directory | Sort-Object LastWriteTime -Descending
      if ($teamsFolders.Count -gt 0) {
          $newestVersionFolder = $teamsFolders[0].FullName
          $teamsVersion = ($newestVersionFolder -split "_")[1] # Extract version from folder name
          $meetingInstaller = Join-Path -Path $newestVersionFolder -ChildPath "MICROSOFTTEAMSMEETINGADDININSTALLER.MSI"
      } else {
          Write-Error "Teams version could not be determined. Please check if Teams is installed."
          return
      }
  } else {
      # Construct meeting installer path using the AppX package version
      $meetingInstaller = "$($env:ProgramFiles)\WINDOWSAPPS\MSTEAMS_$($teamsVersion)_X64__8WEKYB3D8BBWE\MICROSOFTTEAMSMEETINGADDININSTALLER.MSI"
  }
  
  $meetingVersion = (Get-AppLockerFileInformation -Path $meetingInstaller | Select-Object -ExpandProperty Publisher | Select-Object -ExpandProperty BinaryVersion).ToString()
  $packageArgsMeeting =@{
    packageName  = $env:ChocolateyPackageName +"_MeetingAddIn"
    fileType     = "msi"
    file         = $meetingInstaller
    SilentArgs   = "/qn /norestart ALLUSERS=1  TARGETDIR=`"$($env:ProgramFiles)\Microsoft\TeamsMeetingAdd-in\$($meetingVersion)\`" /l*v `"$($env:TEMP)\$($packageName).meetingAddin_$($meetingVersion).MsiInstall.log`""
  }

  Install-ChocolateyInstallPackage @packageArgsMeeting 
}
tools\chocolateyuninstall.ps1
# Ensure the script runs with administrative privileges
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
    Write-Error "This script must be run as an Administrator."
    exit
}

# Identify and Remove MS Teams Installations
Write-Host "Identifying installed MS Teams packages for all users..."
$teamsPackages = Get-AppxPackage -AllUsers | Where-Object {$_.PackageFullName -like "*Teams*"}
$provisionedPackages = Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like "*Teams*"}

if ($teamsPackages.Count -eq 0 -and $provisionedPackages.Count -eq 0) {
    Write-Host "No MS Teams installations found."
} else {
    Write-Host "Found the following MS Teams packages:"
    $teamsPackages | ForEach-Object {Write-Host $_.PackageFullName}
    $provisionedPackages | ForEach-Object {Write-Host $_.PackageName}
}

# Remove provisioned MS Teams packages
$provisionedPackages | ForEach-Object {
    if ($_) {
        Write-Host "Removing provisioned package: $($_.PackageName)"
        Dism /Online /Remove-ProvisionedAppxPackage /PackageName:$($_.PackageName)
    } else {
        Write-Host "No provisioned packages to remove."
    }
}

# Remove installed MS Teams packages for all users
$teamsPackages | ForEach-Object {
    if ($_) {
        Write-Host "Removing installed package for all users: $($_.PackageFullName)"
        Remove-AppxPackage -AllUsers -Package $_.PackageFullName
    } else {
        Write-Host "No installed packages to remove."
    }
}

# Uninstall Microsoft Teams Meeting Add-in for Microsoft Office Using MSIExec
Write-Host "Uninstalling Microsoft Teams Meeting Add-in for Microsoft Office..."

# Check if WMIC is available and try to get the GUID of the add-in
try {
    if (Get-Command wmic -ErrorAction SilentlyContinue) {
        Write-Host "WMIC is available. Searching for the Teams Meeting Add-in GUID..."

        # Find the Teams Meeting Add-in for Microsoft Office GUID using WMIC
        $teamsAddinGUID = (wmic product where "name like 'Microsoft Teams Meeting Add-in for Microsoft Office'" get IdentifyingNumber | findstr /i /r "[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}").Trim()

        if (-not [string]::IsNullOrEmpty($teamsAddinGUID)) {
            Write-Host "Found Microsoft Teams Meeting Add-in for Microsoft Office, GUID: $teamsAddinGUID"
            Write-Host "Uninstalling using MSIExec..."

            # Use msiexec to uninstall the add-in by GUID
            $msiExecCommand = "msiexec.exe /x $teamsAddinGUID /quiet /norestart"
            Invoke-Expression $msiExecCommand
            Write-Host "Uninstall process initiated for Microsoft Teams Meeting Add-in for Microsoft Office."
        } else {
            Write-Host "No GUID found for Microsoft Teams Meeting Add-in for Microsoft Office. Skipping uninstallation."
        }
    } else {
        Write-Host "WMIC is not available on this system."
    }
}
catch {
    Write-Host "An error occurred while trying to get the Microsoft Teams Meeting Add-in GUID: $_"
}

# Manually Delete Global Teams-Related Folders
Write-Host "Deleting global Teams-related folders..."
$globalFoldersToDelete = @(
    "C:\Program Files (x86)\Microsoft\Teams",
    "C:\Program Files (x86)\Microsoft\TeamsMeetingAddin",
    "C:\Program Files (x86)\Microsoft\TeamsPresenceAddin"
)

foreach ($folder in $globalFoldersToDelete) {
    if (Test-Path $folder) {
        Write-Host "Deleting folder: $folder"
        Remove-Item -Recurse -Force -Path $folder
    } else {
        Write-Host "Folder not found: $folder"
    }
}

# Clean up Scheduled Tasks related to Teams
Write-Host "Cleaning up any leftover scheduled tasks related to Microsoft Teams..."
$scheduleTasks = Get-ScheduledTask | Where-Object { $_.TaskName -like "*Teams*" }

if ($scheduleTasks) {
    $scheduleTasks | ForEach-Object {
        Write-Host "Removing scheduled task: $($_.TaskName)"
        Unregister-ScheduledTask -TaskName $_.TaskName -Confirm:$false
    }
} else {
    Write-Host "No Teams-related scheduled tasks found."
}

# Remove Chocolatey package folder from lib directory
Write-Host "Cleaning up Chocolatey package folder for Microsoft Teams 2..."
$chocoPackageFolder = Join-Path $env:ChocolateyInstall "lib\microsoft-teams-new-bootstrapper"
if (Test-Path $chocoPackageFolder) {
    Write-Host "Deleting Chocolatey package folder: $chocoPackageFolder"
    Remove-Item -Recurse -Force -Path $chocoPackageFolder
} else {
    Write-Host "No Chocolatey package folder found for Microsoft Teams 2."
}

Write-Host "Microsoft Teams 2 uninstallation and cleanup process completed successfully."
tools\teamsbootstrapper.exe.ignore
 

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2414501 2054994 Thursday, July 11, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2411603 456933 Monday, May 6, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2407901 93423 Monday, April 22, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2407104 142162 Wednesday, March 13, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) with MSIX 24004.1307.2669.7070 1.0.2402201.24004-pre 83 Friday, March 1, 2024 Exempted
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2402201 131932 Friday, January 26, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2400803-pre 503 Saturday, January 20, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2400802 14292 Thursday, January 18, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2334702 24094 Friday, December 15, 2023 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2334102 13440 Saturday, December 9, 2023 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2333437 62 Wednesday, December 6, 2023 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2329602 13490 Thursday, October 26, 2023 Approved

This package has no dependencies.

Discussion for the Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) Package

Ground Rules:

  • This discussion is only about Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) and the Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Microsoft Teams (new client) Bootstrapper (Machine-Wide Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus