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:

1,547,988

Downloads of v 1.0.2414501.20241115:

17

Last Update:

14 Nov 2024

Published Date:

14 Nov 2024

Package Maintainer(s):

Software Author(s):

  • Microsoft Corporation

Tags:

teams office 365 chat collaboration

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

(Waiting for Maintainer to take corrective action)

  • 1
  • 2
  • 3

1.0.2414501.20241115 | Updated: 14 Nov 2024

Downloads:

1,547,988

Downloads of v 1.0.2414501.20241115:

17

Published:

14 Nov 2024

Maintainer(s):

Software Author(s):

  • Microsoft Corporation

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

(Waiting for Maintainer to take corrective action)

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

Some Checks Are Exempted or Have Failed

Not All Tests Have Passed


Validation Testing Failed


Verification Testing Exemption:

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

Details

Scan Testing Pending

IMPORTANT

This version is in moderation and has not yet been approved. This means it doesn't show up under normal search.

  • Until approved, you should consider this package version unsafe - it could do very bad things to your system (it probably doesn't but you have been warned, that's why we have moderation).
  • This package version can change wildly over the course of moderation until it is approved. If you install it and it later has changes to this version, you will be out of sync with any changes that have been made to the package. Until approved, you should consider that this package version doesn't even exist.
  • You cannot install this package under normal scenarios. See How to install package version under moderation for more information.
  • There are also no guarantees that it will be approved.
WARNING

There are versions of this package awaiting moderation (possibly just this one). See the Version History section below.

flcdrg (maintainer) on 14 Nov 2024 21:56:25 +00:00:

User 'flcdrg' (maintainer) submitted package.

chocolatey-ops (reviewer) on 14 Nov 2024 22:29:58 +00:00:

microsoft-teams-new-bootstrapper has failed automated validation.

Requirements

Requirements represent the minimum quality of a package that is acceptable. When a package version has failed requirements, the package version requires fixing and/or response by the maintainer. Provided a Requirement has flagged correctly, it must be fixed before the package version can be approved. The exact same version should be uploaded during moderation review.

  • Something went very wrong. Unable to validate package. Please rerun package validator. If you receive this message again, contact the site admins.

flcdrg (maintainer) on 14 Nov 2024 23:40:35 +00:00:

User 'flcdrg' (maintainer) submitted package.

chocolatey-ops (reviewer) on 15 Nov 2024 00:13:52 +00:00:

microsoft-teams-new-bootstrapper has failed automated validation.

Requirements

Requirements represent the minimum quality of a package that is acceptable. When a package version has failed requirements, the package version requires fixing and/or response by the maintainer. Provided a Requirement has flagged correctly, it must be fixed before the package version can be approved. The exact same version should be uploaded during moderation review.

  • Something went very wrong. Unable to validate package. Please rerun package validator. If you receive this message again, contact the site admins.
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 = 'E7F8AA05BDF853212D5E978BDC2D46A58F47C8F96826192FA49FC4B0C78C3879'
$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']){
  $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
 

No results available for this package. We are building up results for older packages over time so expect to see results. If this is a new package, it should have results within a day or two.

Add to Builder Version Downloads Last Updated Status
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2414501.20241115 17 Thursday, November 14, 2024
Waiting for Maintainer
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2411603 385556 Monday, May 6, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2407901 92393 Monday, April 22, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2407104 137987 Wednesday, March 13, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) with MSIX 24004.1307.2669.7070 1.0.2402201.24004-pre 61 Friday, March 1, 2024 Exempted
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2402201 120933 Friday, January 26, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2400803-pre 297 Saturday, January 20, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2400802 12400 Thursday, January 18, 2024 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2334702 23281 Friday, December 15, 2023 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2334102 12549 Saturday, December 9, 2023 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2333437 32 Wednesday, December 6, 2023 Approved
Microsoft Teams (new client) Bootstrapper (Machine-Wide Install) 1.0.2329602 13351 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