Computer >> Hướng Dẫn Máy Tính >  >> Hệ Thống >> Windows 10

Tắt tự động khởi động Microsoft Teams

Mặc định khi cài Office 365/Office 2019, tất cả app Office được cài bao gồm Teams (có thể cài chỉ app cụ thể dùng Office Deployment Tool). MS Teams cấu hình tự khởi động khi user đăng nhập máy. Nếu không dùng Teams hoặc không muốn nó tiêu tốn tài nguyên, có thể tắt auto-start Teams (đặc biệt quan trọng trên RDS host cài Office 365).

Tắt tự động khởi động Microsoft Teams

Ngăn Teams mở khi khởi động Windows

Tắt autostart Teams thủ công trong cài đặt app. Mở app → Settings → General → Application. Bỏ tích Auto-start application. Restart app.
Tắt tự động khởi động Microsoft Teams

Lưu ý: Nếu chỉ tắt Teams autostart ở tab Startup Task Manager, nó vẫn tự khởi động khi chạy app lần sau.
Tắt tự động khởi động Microsoft Teams

Tắt Teams autostart qua Registry. Xóa tham số registry com.squirrel.Teams.Teams khỏi khóa HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run (giá trị mặc định: C:\Users\%username%\AppData\Local\Microsoft\Teams\Update.exe --processStart "Teams.exe" --process-start-args "--system-initiated").
Tắt tự động khởi động Microsoft Teams

Tắt Teams autorun cho tất cả user trong AD domain, tạo GPO xóa tham số registry này:

  1. Tạo GPO mới link đến OU chứa máy cần tắt Teams autostart;
  2. User Configuration → Preferences → Windows Settings → Registry;
  3. Tạo rule GPP xóa tham số registry: Action: Delete, Hive: HKEY_CURRENT_USER, Key path: \Software\Microsoft\Windows\CurrentVersion\Run, Value name: com.squirrel.Teams.Teams
    Tắt tự động khởi động Microsoft Teams
  4. Bật GPO loopback processing mode. Computer Configuration → Administrative Templates → System → Group Policy, đặt Merge cho Configure user Group Policy loopback processing mode.

Có tùy chọn đặc biệt tắt Teams autostart trong Office admx GPO templates. Tải và cài đặt (cập nhật) file ADMX mới Office 365 vào GPO Central Store. Sau đó dùng tùy chọn Prevent Microsoft Teams from starting automatically after installation (User Configuration → Policies → Administrative Templates → Microsoft Teams).

Policy phải cấu hình trước khi cài Teams trên máy vì app thêm vào startup sau lần chạy thành công đầu tiên.
Tắt tự động khởi động Microsoft Teams

Microsoft khuyên chạy script PowerShell reset toàn bộ cài đặt autostart Teams user: https://docs.microsoft.com/en-us/microsoftteams/scripts/powershell-script-teams-reset-autostart.

Hoặc dùng script đơn giản reset cài đặt autostart Teams trong registry và file config JSON %APPDATA%\Microsoft\Teams\desktop-config.json:

$entry = $null -eq (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Run)."com.squirrel.Teams.Teams"
if ( !$entry ) {
Remove-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Run -Name "com.squirrel.Teams.Teams"
}
$teamsConfigFile = "$env:APPDATA\Microsoft\Teams\desktop-config.json"
$teamsConfig = Get-Content $teamsConfigFile -Raw
if ( $teamsConfig -match "openAtLogin`":false" ) {
break
}
elseif ( $teamsConfig -match "openAtLogin`":true" ) {
$teamsConfig = $teamsConfig -replace "`"openAtLogin`":true","`"openAtLogin`":false"
}
else {
$teamsAutoStart = ",`"appPreferenceSettings`":{`"openAtLogin`":false}}"
$teamsConfig = $teamsConfig -replace "}$",$teamsAutoStart
}
$teamsConfig | Set-Content $teamsConfigFile

Chạy code này làm PowerShell logon script trong Group Policy.

Tắt Microsoft Teams Auto-Startup trên Linux

Trên các distro Linux (Ubuntu, Fedora, CentOS, RHEL), Teams cũng cấu hình tự khởi động. Teams khởi động Linux qua file application startup /home/$USER/.config/autostart/teams.desktop.

Tắt autostart Teams trong GUI hoặc chỉnh file config (teams.desktop).

vi ~/.config/autostart/teams.desktop

Đổi giá trị từ True sang False:

X-GNOME-Autostart-enabled=false

Ngăn chặn sửa đổi file (ngược lại, chạy MS Teams thủ công sẽ khôi phục config gốc):

sudo chattr +i ~/.config/autostart/teams.desktop