取得 Microsoft Teams 用戶端Get clients for Microsoft Teams

Microsoft Teams 具有適用於 Web、桌面 (Windows、Mac 和 Linux) 及行動裝置 (Android 和 iOS) 的用戶端。Microsoft Teams has clients available for desktop (Windows, Mac, and Linux), web, and mobile (Android and iOS). 這些用戶端都需要使用有效的網際網路連線,且並不支援離線模式。These clients all require an active internet connection and do not support an offline mode.

注意

如需不同平臺上每個用戶端功能的詳細資訊,請參閱 依平臺的團隊功能For details about each clients' capabilities on different platforms, see Teams features by platform.

注意

2018 年 11 月 29 日起,您將無法再使用 Microsoft Store 提供的 Windows 10 S 版 Microsoft Teams (預覽版) 應用程式。Effective November 29, 2018, you'll no longer be able to use the Microsoft Teams for Windows 10 S (Preview) app, available from the Microsoft Store. 但是您現在可以在執行 Windows 10 S 模式的裝置上,下載並安裝 Teams 桌面版用戶端。Instead, you can now download and install the Teams desktop client on devices running Windows 10 S mode. 若要下載桌面版用戶端,請移至 https://teams.microsoft.com/downloadsTo download the desktop client, go to https://teams.microsoft.com/downloads. Teams 桌面版用戶端的 MSI 組建尚不適用於執行 Windows 10 S 模式的裝置。MSI builds of the Teams desktop client are not yet available for devices running Windows 10 S mode.

如需有關 Windows 10 S 模式的詳細資訊,請參閱引進 Windows 10 S 模式For more information about Windows 10 S mode, see Introducing Windows 10 in S mode.

桌面版用戶端Desktop client

提示

請觀看下列工作階段,以了解 Windows 桌面版用戶端的優點、規劃方式及部署方式:Teams 的 Windows 桌面版用戶端Watch the following session to learn about the benefits of the Windows Desktop Client, how to plan for it, and how to deploy it: Teams Windows Desktop Client

Microsoft 團隊桌面用戶端是獨立的應用程式,也 可在適用于企業的 Microsoft 365 應用程式中使用The Microsoft Teams desktop client is a standalone application and is also available in Microsoft 365 Apps for enterprise. 團隊可在32和64位版本的 Windows (8.1 或更新版本) 中,在 ARM 上使用 Windows 10 版 ARM64,以及 Windows Server (2012 R2 或更新版本) ,以及 (的 macOS 和 Linux) .deb .rpm 格式。Teams is available for 32-bit and 64-bit versions of Windows (8.1 or later), ARM64 for Windows 10 on ARM, and Windows Server (2012 R2 or later), as well as for macOS and Linux (in .deb and .rpm formats). 在 Windows 上,Teams 需要 .NET Framework 4.5 或更新版本;如果您沒有此元件,Teams 安裝程式將會為您安裝。On Windows, Teams requires .NET Framework 4.5 or later; the Teams installer will offer to install it for you if you don't have it. 在 Linux 上,套件管理員 (例如 aptyum) 會嘗試為您安裝任何需求。On Linux, package managers such as apt and yum will try to install any requirements for you. 不過,如果套件管理員沒有這麼做,您必須先安裝所有回報的需求,然後再安裝 Linux 版 Teams。However, if they don't then you will need to install any reported requirements before installing Teams on Linux.

桌面版用戶端提供即時通訊支援 (音訊、視訊和內容共用),可用於進行小組會議、群組通話和個人的一對一通話。The desktop clients provide real-time communications support (audio, video, and content sharing) for team meetings, group calling, and private one-on-one calls.

如果終端使用者擁有適當的本機權限 (在 PC 上安裝 Teams 用戶端不需要系統管理員權限,但在 Mac 上安裝則需要系統管理員權限),他們可以直接從 https://teams.microsoft.com/downloads 下載和安裝桌面版用戶端。Desktop clients can be downloaded and installed by end users directly from https://teams.microsoft.com/downloads if they have the appropriate local permissions (admin rights are not required to install the Teams client on a PC but are required on a Mac).

注意

如需在 Chromebook 上安裝團隊的詳細資訊,請參閱 如何在 Chromebook 上安裝及執行 Microsoft OfficeFor more details about installing Teams on a Chromebook, please see How to install and run Microsoft Office on a Chromebook.

IT 系統管理員可以選擇其偏好的方式,將安裝檔案發佈到組織中的電腦。IT admins can choose their preferred method to distribute the installation files to computers in their organization. 例如 Microsoft Endpoint Configuration Manager (Windows) 或 Jamf Pro (macOS)。Some examples include Microsoft Endpoint Configuration Manager (Windows) or Jamf Pro (macOS). 若要取得 Windows 發行版本的 MSI 套件,請參閱使用 MSI 安裝 Microsoft TeamsTo get the MSI package for Windows distribution, see Install Microsoft Teams using MSI.

注意

透過這些機制發佈的用戶端只適用於一開始的 Microsoft Team 用戶端安裝,不適用於未來的更新。Distribution of the client via these mechanisms is only for the initial installation of Microsoft Team clients and not for future updates.

WindowsWindows

適用於 Windows 的 Microsoft Teams 安裝會提供 32 位元和 64 位元架構的可下載安裝程式。The Microsoft Teams installation for Windows provides downloadable installers in 32-bit and 64-bit architecture.

注意

Microsoft Teams 的架構 (32 位元和 64 位元) 並不受限於已安裝的 Windows 和 Office 架構。The architecture (32-bit vs. 64-bit) of Microsoft Teams is agnostic to the architecture of Windows and Office that is installed.

Windows 用戶端會部署至使用者設定檔中的 [AppData] 資料夾。The Windows client is deployed to the AppData folder located in the user’s profile. 部署至使用者的本機設定檔中,即可在不需要提高權限的情況下安裝用戶端。Deploying to the user’s local profile allows the client to be installed without requiring elevated rights. Windows 用戶端會利用下列位置:The Windows client leverages the following locations:

  • %LocalAppData%\Microsoft\Teams%LocalAppData%\Microsoft\Teams

  • %LocalAppData%\Microsoft\TeamsMeetingAddin%LocalAppData%\Microsoft\TeamsMeetingAddin

  • %AppData%\Microsoft\Teams%AppData%\Microsoft\Teams

  • %LocalAppData%\SquirrelTemp%LocalAppData%\SquirrelTemp

使用者第一次使用 Microsoft Teams 用戶端進行通話時,可能會注意到要求使用者允許通訊的 Windows 防火牆設定警告。When users initiate a call using the Microsoft Teams client for the first time, they might notice a warning with the Windows firewall settings that asks for users to allow communication. 系統可能會指示使用者忽略這則訊息,因為即使忽略警告,您仍然能進行通話。Users might be instructed to ignore this message because the call will work, even when the warning is dismissed.

Windows 安全性警示對話方塊的螢幕擷取畫面。

注意

即使您選取「取消」來忽略提示,Windows 防火牆設定仍會變更。Windows Firewall configuration will be altered even when the prompt is dismissed by selecting “Cancel”. 將使用 TCP 和 UDP 通訊協定的 [允許] 動作來建立 teams.exe 的兩個入站規則。Two inbound rules for teams.exe will be created with Allow action for both TCP and UDP protocols.

如果您想要防止團隊在使用者第一次從團隊撥打電話時,提示使用者建立防火牆規則,請使用下列 範例 PowerShell 腳本-入站防火牆規則If you want to prevent Teams from prompting users to create firewall rules when the users make their first call from Teams, use the Sample PowerShell script - inbound firewall rule below.

MacMac

Mac 使用者可以使用 macOS 電腦的 PKG 安裝檔來安裝 Teams。Mac users can install Teams by using a PKG installation file for macOS computers. 安裝 Mac 用戶端必須具備系統管理存取權。Administrative access is required to install the Mac client. MacOS 用戶端會安裝至 /Applications 資料夾。The macOS client is installed to the /Applications folder.

使用 PKG 檔案來安裝 TeamsInstall Teams by using the PKG file

  1. Mac 底下的 Teams 下載頁面中,按一下 [下載]。From the Teams download page, under Mac, click Download.
  2. 按兩下 PKG 檔案。Double click the PKG file.
  3. 遵循安裝精靈來完成安裝。Follow the installation wizard to complete the installation.
  4. Teams 將會安裝到 /Applications 資料夾。Teams will be installed to /Applications folder. 這是全機器安裝。It is a machine-wide installation.

注意

在安裝期間,PKG 會提示您輸入系統管理員認證。During the installation, the PKG will prompt for admin credentials. 無論使用者是否為系統管理員,使用者都需要輸入系統管理員認證。The user needs to enter the admin credentials, regardless of whether or not the user is an admin.

如果使用者目前已具有 Teams 的 DMG 安裝,但想要將其取代為 PKG 安裝,使用者應該:If a user currently has a DMG installation of Teams and wants to replace it with the PKG installation, the user should:

  1. 結束 Teams 應用程式。Exit the Teams app.
  2. 取消安裝 Teams 應用程式。Uninstall the Teams app.
  3. 安裝 PKG 檔案。Install the PKG file.

IT 系統管理員可以使用 Teams 的受控部署,將安裝檔案發佈到其組織中的所有 Mac,例如 Jamf Pro。IT admins can use managed deployment of Teams to distribute the installation files to all Macs in their organization, such as Jamf Pro.

注意

如果您在安裝 PKG 時遇到問題,請告訴我們。If you experience issues installing the PKG, let us know. 請在本文結尾的 意見反應 一節中,按一下 [產品意見反應]。In the Feedback section at the end of this article, click Product feedback.

LinuxLinux

使用者能夠安裝 .deb.rpm 格式的原生 Linux 套件。Users will be able to install native Linux packages in .deb and .rpm formats. 安裝 DEB 或 RPM 套件時,將會自動安裝套件儲存庫。Installing the DEB or RPM package will automatically install the package repository.

  • DEB https://packages.microsoft.com/repos/ms-teams stable mainDEB https://packages.microsoft.com/repos/ms-teams stable main
  • RPM https://packages.microsoft.com/yumrepos/ms-teamsRPM https://packages.microsoft.com/yumrepos/ms-teams

使用系統套件管理員來啟用自動更新所需的簽署金鑰也會自動安裝。The signing key to enable auto-updating using the system's package manager is installed automatically. 不過,也可以在以下位置找到:(https://packages.microsoft.com/keys/microsoft.asc)。However, it can also be found at: (https://packages.microsoft.com/keys/microsoft.asc). Microsoft Teams 會每月傳送,而且如果存放庫安裝正確,則系統套件管理員會使用與系統中其他套件相同的方式處理自動更新。Microsoft Teams ships monthly and if the repository was installed correctly, then your system package manager should handle auto-updating in the same way as other packages on the system.

注意

如果您發現錯誤,請使用用戶端內部的 Report a Problem 提交錯誤。If you find a bug, submit it using Report a Problem from within the client. 如有已知問題,請參閱 貴組織的支援小組For known issues, see Support Teams in your organization. 如需適用於 Teams 的 Linux 支援,您可以使用 Microsoft Q&A 上的 Linux 論壇支援頻道For Teams for Linux support you can use the Linux forum support channel on Microsoft Q&A. 請務必在張貼問題時使用 teams-linux 標籤。Be sure to use the teams-linux tag when posting questions.

使用 DEB 套件安裝 TeamsInstall Teams using DEB package

  1. https://aka.ms/getteams 下載套件。Download the package from https://aka.ms/getteams.
  2. 利用下列其中一個選項進行安裝:Install using one of the following:
    • 開啟相關套件管理工具,並進行自助式 Linux 應用程式安裝程序。Open the relevant package management tool and go through the self-guided Linux app installation process.
    • 或者,如果您喜歡終端機,請輸入: sudo dpkg -i **teams download file**Or if you love Terminal, type: sudo dpkg -i **teams download file**

您可以輸入 teams,以透過活動或終端機來啟動 Teams。You can launch Teams via Activities or via Terminal by typing teams.

使用 RPM 套件來安裝 TeamsInstall Teams using RPM package

  1. https://aka.ms/getteams 下載套件。Download the package from https://aka.ms/getteams.
  2. 利用下列其中一個選項進行安裝:Install using one of the following:
    • 開啟相關套件管理工具,並進行自助式 Linux 應用程式安裝程序。Open the relevant package management tool and go through the self-guided Linux app installation process.
    • 或者,如果您喜歡終端機,請輸入: sudo yum install **teams download file**Or if you love Terminal, type: sudo yum install **teams download file**

您可以輸入 teams,以透過活動或終端機來啟動 Teams。You can launch Teams via Activities or via Terminal by typing teams.

從命令列手動安裝Install manually from the command line

在 Debian 和 Ubuntu 發行版本上手動安裝:Install manually on Debian and Ubuntu distributions:

curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
 
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main" > /etc/apt/sources.list.d/teams.list'
 
sudo apt update
sudo apt install teams

在 RHEL、Fedora 和 CentOS 發行版本中手動安裝:Install manually on RHEL, Fedora and CentOS based distributions:

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
 
sudo sh -c 'echo -e "[teams]\nname=teams\nbaseurl=https://packages.microsoft.com/yumrepos/ms-teams\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/teams.repo'
 
sudo dnf check-update
sudo dnf install teams

或者,若要使用 yum (而不是 dnf):Alternatively, to use yum instead of dnf:

yum check-update
sudo yum install teams

在 openSUSE 發行版本上手動安裝:Install manually on openSUSE based distributions:

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
 
sudo sh -c 'echo -e "[teams]\nname=teams\nbaseurl=https://packages.microsoft.com/yumrepos/ms-teams\nenabled=1\nautorefresh=1\nkeeppackages=0\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/zypp/repos.d/teams.repo'
 
sudo zypper refresh
sudo zypper install teams

Web 用戶端Web client

Web 用戶端 (https://teams.microsoft.com) 是功能完整的用戶端,可在多種瀏覽器中使用。The web client (https://teams.microsoft.com) is a full, functional client that can be used from a variety of browsers. Web 用戶端使用 webRTC 來支援通話和會議,因此不需要外掛程式或任何下載,即可在網頁瀏覽器中執行 Teams。The web client supports Calling and Meetings by using webRTC, so there is no plug-in or download required to run Teams in a web browser. 瀏覽器必須設定為允許第三方 Cookie。The browser must be configured to allow third-party cookies.

Teams 完全支援以下網際網路瀏覽器,但通話和會議例外。Teams fully supports the following Internet browsers, with noted exceptions for calling and meetings. 此表格適用於在桌上型電腦執行的作業系統。This table applies to operating systems running on desktop computers.

瀏覽器Browser 通話 - 音訊、視訊和共用Calling - audio, video, and sharing 會議 - 音訊、視訊和共用1 2 3Meetings - audio, video, and sharing1 2 3
Internet Explorer 11Internet Explorer 11 不支援Not supported 只在會議包含 PSTN 座標時,才支援會議。Meetings are supported only if the meeting includes PSTN coordinates. 若要在沒有 PSTN 座標的 IE11 上出席會議,使用者必須下載 Teams 桌面用戶端。To attend a meeting on IE11 without PSTN coordinates, users must download the Teams desktop client.

視訊:不支援Video: Not supported

共用:僅限傳入共用 (非傳出)  Sharing: Incoming sharing only (no outgoing) 

自 2021 年 8 月 17 日起,Microsoft 365 應用程式和服務將不支援 Internet Explorer 11 (自 2020 年 11 月 30 日起,Microsoft Teams 將更早不支援 Internet Explorer 11)。Microsoft 365 apps and services will not support Internet Explorer 11 starting August 17, 2021 (Microsoft Teams will not support Internet Explorer 11 earlier, starting November 30, 2020). 深入了解Learn more. 請注意,Internet Explorer 11 仍然是受支援的瀏覽器。Please note that Internet Explorer 11 will remain a supported browser. Internet Explorer 11 是 Windows 作業系統的元件,並遵循安裝該其所在產品的生命週期原則Internet Explorer 11 is a component of the Windows operating system and follows the Lifecycle Policy for the product on which it is installed.
Microsoft Edge、RS2 或更新版本Microsoft Edge, RS2 or later 完全支援,傳出共用4 除外Fully supported, except no outgoing sharing4 完全支援,傳出共用除外Fully supported, except no outgoing sharing
Microsoft Edge (Chromium 型) 最新版本加上兩個先前的版本Microsoft Edge (Chromium-based), the latest version plus two previous versions 完全支援Fully supported 完全支援Fully supported
Google Chrome 最新版本加上兩個先前的版本Google Chrome, the latest version plus two previous versions 完全支援Fully supported 完全支援Fully supported

在沒有任何外掛程式或擴充的 Chrome 版本 72 或更新版本上支援共用。Sharing is supported without any plug-ins or extensions on Chrome version 72 or later.
Safari 13+Safari 13+ 不支援一對一通話。1:1 calls not supported. 支援全音訊的群組通話。Group calls supported with full audio support.

視訊:僅限傳入Video: Incoming only

共用:僅限傳入共用 (非傳出)Sharing: Incoming sharing only (no outgoing) 
支援完整音訊的會議。Meetings are supported with full audio support.

視訊:僅限傳入Video: Incoming only

共用:僅限傳入共用 (非傳出)Sharing: Incoming sharing only (no outgoing) 
Firefox 最新版本加上兩個先前的版本Firefox, the latest version plus two previous versions 不支援Not supported 只在會議包含 PSTN 座標時,才支援會議。Meetings are supported only if the meeting includes PSTN coordinates. 若要在沒有 PSTN 座標的 Firefox 上出席會議,使用者必須下載 Teams 桌面用戶端。To attend a meeting on Firefox without PSTN coordinates, users must download the Teams desktop client.

視訊:不支援Video: Not supported

共用:僅限傳入共用 (非傳出)Sharing: Incoming sharing only (no outgoing) 
Safari 13 之前的版本Safari versions before 13 不支援Not supported 只在會議包含 PSTN 座標時,才支援會議。Meetings are supported only if the meeting includes PSTN coordinates. 若要在沒有 PSTN 座標的 Safari 上出席會議,使用者必須下載 Teams 桌面用戶端。To attend a meeting on Safari without PSTN coordinates, users must download the Teams desktop client.

視訊:不支援Video: Not supported

共用:僅限傳入共用 (非傳出)Sharing: Incoming sharing only (no outgoing)

在預覽版的版本高於 11.1 時,Safari 就會啟用。Safari is enabled on versions higher than 11.1 in preview. 但是在預覽版中,Safari 的智慧型追蹤防護有已知問題While in preview, there are known issues with Safari's Intelligent Tracking Prevention.

1 若要在共用期間提供和控制共用內容,雙方都必須使用 Teams 電腦版用戶端。1 To give and take control of shared content during sharing, both parties must be using the Teams desktop client. 當任一方執行瀏覽器中的 Teams 時,則不支援控制。Control isn't supported when either party is running Teams in a browser. 這是我們正計畫修正的技術限制所造成。This is due to a technical limitation that we're planning to fix.

2 當您在瀏覽器中執行 Teams 時,無法模糊背景。2 Blur my background isn't available when you run Teams in a browser. 這項功能只適用於 Teams 傳統型用戶端。This feature is only available in the Teams desktop client.

3 在瀏覽器上進行的 Teams 會議僅限於作用中講者的單一傳入視訊摘要。3 Teams meetings on browsers are limited to a single incoming video feed of active speaker.

4 Edge RS2 或更新版本不支援透過 HTTP proxy 傳送即時音訊和影片流量。4 Edge RS2 or later doesn't support sending real-time audio and video traffic through HTTP proxies.

注意

只要作業系統可以執行支援的瀏覽器,就能在桌上型電腦支援 Teams。As long as an operating system can run the supported browser, Teams is supported on desktop computers. 例如,在 Linux 作業系統上執行 Firefox,即為使用 Teams 的一個選項。For example, running Firefox on the Linux operating system is an option for using Teams.

針對行動裝置作業系統,我們建議您執行可從 Android 和 iOS 商店取得的 Teams 應用程式。For mobile operating systems, we recommend that you run the Teams app, available from the Android and iOS stores. 支援在行動裝置作業系統上執行 Teams,但許多功能無法使用。Running Teams in a mobile operating system is supported, but many features are unavailable.

Web 用戶端會在連線至 https://teams.microsoft.com 時執行瀏覽器版本偵測。The web client performs browser version detection upon connecting to https://teams.microsoft.com. 如果偵測到不受支援的瀏覽器版本,則會封鎖 Web 介面的存取權,並建議使用者下載桌面版用戶端或行動裝置應用程式。If an unsupported browser version is detected, it will block access to the web interface and recommend that the user download the desktop client or mobile app.

行動裝置用戶端Mobile clients

Microsoft Teams 行動裝置應用程式適用於 Android 和 iOS,可讓使用者在任何地方參與聊天式對話,並且允許對等音訊通話。The Microsoft Teams mobile apps are available for Android and iOS, and are geared for on-the-go users participating in chat-based conversations and allow peer-to-peer audio calls. 若需行動裝置應用程式,請移至相關的行動裝置商店:Google Play 和 Apple App Store。For mobile apps, go to the relevant mobile stores Google Play and the Apple App Store. Windows Phone 應用程式已於 2018 年 7 月 20 日停用,已不再適用。The Windows Phone App was retired July 20, 2018 and may no longer work.

以下說明如何在中國取得 Android 版 TeamsIn China, here's how to get Teams for Android.

Microsoft Teams 行動裝置應用程式支援的行動平台如下:Supported mobile platforms for Microsoft Teams mobile apps are the following:

  • Android:僅支援 Android 最新的四個主要版本。Android: Support is limited to the last four major versions of Android. 發行新的 Android 主要版本時,此新版本和前三個版本都可受到正式支援。When a new major version of Android is released, the new version and the previous three versions are officially supported.

  • iOS:僅支援 iOS 最新的兩個主要版本。iOS: Support is limited to the two most recent major versions of iOS. 發行新的 iOS 主要版本時,此新版 iOS 和前一版本都可受到正式支援。When a new major version of iOS is released, the new version of iOS and the previous version are officially supported.

注意

為了讓 Teams 正常運作,您必須公開使用行動裝置版本。The mobile version must be available to the public in order for Teams to work as expected.

行動裝置應用程式只可透過各別行動平台的應用程式商店來發行及更新。Mobile apps are distributed and updated through the respective mobile platform’s app store only. Microsoft 不支援透過 MDM 或側載來發行行動裝置應用程式。Distribution of the mobile apps via MDM or side-loading is not supported by Microsoft. 當行動裝置應用程式安裝在支援的行動裝置平台上之後,在目前版本發行後的三個月內,該版本仍能支援 Teams 行動裝置應用程式本身。Once the mobile app has been installed on a supported mobile platform, the Teams Mobile App itself will be supported provided the version is within three months of the current release.

描繪決策點的圖示 決策點Decision Point 是否有任何限制會讓使用者無法在其裝置上安裝適當的 Microsoft Teams 用戶端?Are there any restrictions preventing users from installing the appropriate Microsoft Teams client on their devices?
描繪後續步驟的圖示 後續步驟Next Steps 如果您的組織限制軟體安裝,請確認該程序與 Microsoft Teams 相容。If your organization restricts software installation, make sure that process is compatible with Microsoft Teams. 附註:PC 版用戶端安裝程式不需要系統管理員權限,但這在 Mac 上安裝時是必要的權限。Note: Admin rights are not required for PC client installation but are required for installation on a Mac.

用戶端更新管理Client update management

用戶端目前由 Microsoft Teams 服務自動更新,無需 IT 系統管理員介入。Clients are currently updated automatically by the Microsoft Teams service with no IT administrator intervention required. 一旦有可用的更新,用戶端就會自動下載更新,並且會在應用程式已閒置一段時間後,開始更新程序。If an update is available, the client will automatically download the update and when the app has idled for a period of time, the update process will begin.

用戶端設定Client-side configurations

目前,沒有支援的選項可供您透過租用戶系統管理員、PowerShell、群組原則物件或登錄來設定用戶端。Currently, there are no supported options available to configure the client either through the tenant admin, PowerShell, Group Policy Objects or the registry.

通知設定Notification settings

目前沒有可供 IT 系統管理員設定用戶端通知設定的選項。There are currently no options available for IT administrators to configure client-side notification settings. 所有通知選項皆由使用者設定。All notification options are set by the user. 下圖概述預設的用戶端設定。The figure below outlines the default client settings.

通知設定的螢幕擷取畫面。

PowerShell 腳本-入站防火牆規則範例Sample PowerShell script - inbound firewall rule

此指令碼範例必須在系統管理員帳戶權限已提升的用戶端電腦上執行,才能為 c:\users 中的每個使用者資料夾建立新的輸入防火牆規則。This sample script, which needs to run on client computers in the context of an elevated administrator account, will create a new inbound firewall rule for each user folder found in c:\users. 當 Teams 找到此規則時,該規則會防止 Teams 應用程式在使用者第一次從 Teams 進行通話時,提示使用者建立防火牆規則。When Teams finds this rule, it will prevent the Teams application from prompting users to create firewall rules when the users make their first call from Teams.

<#
.SYNOPSIS
   Creates firewall rules for Teams.
.DESCRIPTION
   (c) Microsoft Corporation 2018. All rights reserved. Script provided as-is without any warranty of any kind. Use it freely at your own risks.
   Must be run with elevated permissions. Can be run as a GPO Computer Startup script, or as a Scheduled Task with elevated permissions. 
   The script will create a new inbound firewall rule for each user folder found in c:\users. 
   Requires PowerShell 3.0.
#>

#Requires -Version 3

$users = Get-ChildItem (Join-Path -Path $env:SystemDrive -ChildPath 'Users') -Exclude 'Public', 'ADMINI~*'
if ($null -ne $users) {
    foreach ($user in $users) {
        $progPath = Join-Path -Path $user.FullName -ChildPath "AppData\Local\Microsoft\Teams\Current\Teams.exe"
        if (Test-Path $progPath) {
            if (-not (Get-NetFirewallApplicationFilter -Program $progPath -ErrorAction SilentlyContinue)) {
                $ruleName = "Teams.exe for user $($user.Name)"
                "UDP", "TCP" | ForEach-Object { New-NetFirewallRule -DisplayName $ruleName -Direction Inbound -Profile Domain -Program $progPath -Action Allow -Protocol $_ }
                Clear-Variable ruleName
            }
        }
        Clear-Variable progPath
    }
}