> For the complete documentation index, see [llms.txt](https://scripts.aaronjstevenson.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripts.aaronjstevenson.com/software/installers/microsoft-teams.md).

# Microsoft Teams

## Overview

This script downloads and installs the latest Microsoft Teams (New) machine wide. If the Teams (Classic) Machine-Wide installer is present, it will be uninstalled. With its removal, Teams (Classic) will also be removed from all user profiles on their next login.

{% embed url="<https://learn.microsoft.com/en-us/microsoftteams/new-teams-bulk-install-client>" %}

**Prerequisites:** None

***

## Script

{% hint style="warning" %}
**Note:** This script will attempt to remove Teams (Classic) versions if they were deployed with the machine-wide installer package.
{% endhint %}

{% @github-files/github-code-block url="<https://github.com/wise-io/scripts/blob/main/scripts/InstallTeams.ps1>" %}

***

## Parameters

`-Force`

Optional switch parameter - attempts install even if an existing installation is detected.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://scripts.aaronjstevenson.com/software/installers/microsoft-teams.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
