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

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

Configure User’s Folder Redirection with Group Policy

February 3, 2023

Disable Built-in PDF Viewer in Microsoft Edge

February 3, 2023

Join a Windows Computer to an Active Directory...

February 2, 2023

Using Previous Command History in PowerShell Console

January 31, 2023

How to Install the PowerShell Active Directory Module...

January 31, 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

  • Configure User’s Folder Redirection with Group Policy

    February 3, 2023
  • Using Previous Command History in PowerShell Console

    January 31, 2023
  • How to Install the PowerShell Active Directory Module and Manage AD?

    January 31, 2023
  • Finding Duplicate E-mail (SMTP) Addresses in Exchange

    January 27, 2023
  • How to Delete Old User Profiles in Windows?

    January 25, 2023
  • How to Install Free VMware Hypervisor (ESXi)?

    January 24, 2023
  • How to Enable TLS 1.2 on Windows?

    January 18, 2023
  • Allow or Prevent Non-Admin Users from Reboot/Shutdown Windows

    January 17, 2023
  • Fix: Can’t Extend Volume in Windows

    January 12, 2023
  • Wi-Fi (Internet) Disconnects After Sleep or Hibernation on Windows 10/11

    January 11, 2023

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Updating List of Trusted Root Certificates in Windows
  • Configure Google Chrome Settings with Group Policy
  • Allow RDP Access to Domain Controller for Non-admin Users
  • 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?
  • Reset Local Group Policy Settings in Windows
  • 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