Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Microsoft 365 / Teams / How to Disable Microsoft Teams Auto Startup

June 8, 2023 Group PoliciesLinuxMicrosoft 365PowerShellTeamsWindows 10

How to Disable Microsoft Teams Auto Startup

By default, when you install Office 365/Office 2019, all Microsoft Office apps are installed, including Teams (you can install only specific Office apps using Office Deployment Tool). MS Teams is configured to start automatically when a user logs in to their computer. However, if you are not using Microsoft Teams or don’t want it to consume your host resources, you can disable Teams auto startup (it is especially true for RDS hosts with Office 365).

stop Microsoft Teams from starting automatically in Windows

Contents:
  • How to Stop Teams from Opening on Startup in Windows?
  • Disable Microsoft Teams Auto-Startup on Linux

How to Stop Teams from Opening on Startup in Windows?

You can manually disable Microsoft Teams autostart in its settings. Open the app and go to Settings -> General -> Application. Uncheck the Auto-start application option. Restart the app.

disable "Auto-start application" option in Teams settings

Note that if you simply disable Teams autostart on the Startup tab of the Task Manager, it will still start automatically when you run the app next time.

microsoft teams on startup tab of windows task manager

You can disable Teams autostart through the registry. To do it, remove the com.squirrel.Teams.Teams registry parameter from the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run reg key (its default value is C:\Users\%username%\AppData\Local\Microsoft\Teams\Update.exe --processStart "Teams.exe" --process-start-args "--system-initiated").

com.squirrel.Teams.Teams registry key - autostart option

To disable Teams autorun for all users in your AD domain, you can create a separate GPO that removes this registry parameter:

  1. Create a new GPO and link it to an OU with computers you want to disable Teams autostart on;
  2. Go to User Configuration -> Preferences -> Windows Settings -> Registry;
  3. Create a new Group Policy Preferences rule to remove the registry parameter: Action: Delete
    Hive: HKEY_CURRENT_USER
    Key path: \Software\Microsoft\Windows\CurrentVersion\Run
    Value name: com.squirrel.Teams.Teamsdisable Teams auto start via Group Policy
  4. Enable GPO loopback processing mode. To do it, go to Computer Configuration -> Administrative Templates -> System -> Group Policy, and set the value Merge for Configure user Group Policy loopback processing mode option.

There is a special option to disable Teams autostart in Office admx GPO templates. Download and install (update) new ADMX files for Office 365 to the GPO Central Store. Then you will be able to use the Prevent Microsoft Teams from starting automatically after installation option (User Configuration -> Policies -> Administrative Templates -> Microsoft Teams).

The policy must be configured before Teams installation on a computer since the application is added to startup after the first successful launch.

GPO option: Prevent Microsoft Teams from starting automatically after installation

To reset all Teams user autostart settings, Microsoft suggests running the following PowerShell script: https://docs.microsoft.com/en-us/microsoftteams/scripts/powershell-script-teams-reset-autostart.

Or use my simple script to reset Teams autostart settings in the registry and config JSON  file %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

You can run this code as a PowerShell logon script in Group Policy.

Disable Microsoft Teams Auto-Startup on Linux

Microsoft Teams client in Linux distros (Ubuntu, Fedora, CentOS, and RHEL) is also preconfigured to start automatically. Teams is started in Linux via the application startup file /home/$USER/.config/autostart/teams.desktop.

You can disable Teams autostart in the GUI or edit its configuration file (teams.desktop).

vi ~/.config/autostart/teams.desktop

Change the following value from True to False:

X-GNOME-Autostart-enabled=false

Prevent making changes to the file (otherwise, if you run MS Teams manually, it will restore the original configuration of the file):

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

0 comment
4
Facebook Twitter Google + Pinterest
previous post
Change the Default Remote Desktop (RDP) Port 3389 in Windows
next post
How to Hide Installed Programs in Windows 10 and 11

Related Reading

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

October 15, 2023

How to Query and Change Teams User Presence...

October 8, 2023

How to Increase Size of Disk Partition in...

October 5, 2023

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Updating List of Trusted Root Certificates in Windows
  • Configure Google Chrome Settings with Group Policy
  • How to Find the Source of Account Lockouts in Active Directory
  • How to Hide or Show User Accounts from Login Screen on Windows 10/11?
  • How to Disable or Enable USB Drives in Windows using Group Policy
  • Changing Default File Associations in Windows 10 and 11
  • Configuring Proxy Settings on Windows Using Group Policy Preferences
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top