Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • 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 2012
    • 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?

December 23, 2021 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

In Linux distros (Ubuntu, Fedora, CentOS, and RHEL), Teams 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
2
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

Using PowerShell Behind a Proxy Server

July 1, 2022

How to Access VMFS Datastore from Linux, Windows,...

July 1, 2022

How to Deploy Windows 10 (11) with PXE...

June 27, 2022

Checking Windows Activation Status on Active Directory Computers

June 27, 2022

Configuring Multiple VLAN Interfaces on Windows

June 24, 2022

Leave a Comment Cancel Reply

Categories

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

Recent Posts

  • Using PowerShell Behind a Proxy Server

    July 1, 2022
  • How to Access VMFS Datastore from Linux, Windows, or ESXi?

    July 1, 2022
  • How to Deploy Windows 10 (11) with PXE Network Boot?

    June 27, 2022
  • Checking Windows Activation Status on Active Directory Computers

    June 27, 2022
  • Configuring Multiple VLAN Interfaces on Windows

    June 24, 2022
  • How to Disable or Enable USB Drives in Windows using Group Policy?

    June 24, 2022
  • Adding Domain Users to the Local Administrators Group in Windows

    June 23, 2022
  • Viewing a Remote User’s Desktop Session with Shadow Mode in Windows

    June 23, 2022
  • How to Create a Wi-Fi Hotspot on your Windows PC?

    June 23, 2022
  • Configuring SSH Public Key Authentication on Windows

    June 15, 2022

Follow us

woshub.com

ad

  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Updating List of Trusted Root Certificates in Windows
  • Allow RDP Access to Domain Controller for Non-admin Users
  • How to Hide or Show User Accounts from Login Screen on Windows 10/11?
  • Reset Local Group Policy Settings in Windows
  • How to Disable or Enable USB Drives in Windows using Group Policy?
  • Configuring Proxy Settings on Windows Using Group Policy Preferences
  • Changing Default File Associations in Windows 10 via GPO
Footer Logo

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


Back To Top