Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

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

March 12, 2024 Azure and Microsoft 365Group PoliciesLinuxMicrosoft OfficePowerShellWindows 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 the 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 Microsoft 365 Apps for Business).

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
Changing the Default RDP Port (3389) on Windows
next post
How to Hide Installed Programs in Windows 10 and 11

Related Reading

Configure NTP Time Source for Active Directory Domain

May 6, 2025

View Windows Update History with PowerShell (CMD)

April 30, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 21, 2025

Remove ‘Your License isn’t Genuine’ Banner in MS...

April 21, 2025

Uninstalling Windows Updates via CMD/PowerShell

April 18, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

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

  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Outlook Keeps Asking for Password on Windows
  • Checking User Sign-in Logs in Entra ID (Microsoft 365)
  • How to Manually Configure Exchange or Microsoft 365 Account in Outlook 365/2019/2016
  • Search and Delete Emails from User Mailboxes on Exchange Server (Microsoft 365) with PowerShell
  • Fix: Microsoft Outlook Search Not Working on Windows 10/11
  • Blank Sign-in Screen in Office 365 Apps (Outlook, Teams, etc.)
  • Removing Built-in Teams Chat in Windows 11
Footer Logo

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


Back To Top