Avatar of Pkafkas
Pkafkas
 asked on

How to prevent Microsoft Teams from prompting the user to sign in at logon

We finally have a good deployment package for MS Teams at my work place.  The only thing is that One will need to trigger the application after it is installed in order for the program to be registered/recognized by the computer.

That is fine, no problem there.  Its a little clunky of a process but it at least installs and un-installs correctly.  The problem is, after the program is registered, then when a user logs on the user is automatically prompted to login to Teams.

To correct this I removed the Teams program from the Startup folder in Task Manager.  https://www.techrepublic.com/article/get-more-information-on-window-10s-startup-tab-by-enabling-additional-columns/

My question is, how can I force Teams not to start up automatically at login from a registry hack?
MicrosoftWindows 10* Regedit

Avatar of undefined
Last Comment
Pkafkas

8/22/2022 - Mon
Pkafkas

ASKER
I have seem where to delete the registry that reference teams:
  • Press Windows key + R, to open Run dialog box.
  • Type regedit and click on OK.
  • Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  • On the right pane, right click on the registry entry for Microsoft Teams and select Delete.

https://answers.microsoft.com/en-us/education_ms/forum/edu_win10-edu_settings/how-do-i-disable-the-microsoft-team-from-starting/97e71663-8aa0-4c3b-9b90-a334bf13236f

But how can I force it not to startup, the above way makes me manually delete the entry.  If I force it to be blank then that will automatically stop all apps to auto start. I do not think we want that.

http://eskonr.com/2018/11/how-to-disable-or-enable-auto-start-of-teams-application-using-gpo/

States to use GPO todelete this key:
ollowing is the registry key used in GPO:
Location: User configuration\Preferences\windows settings\registry
Hive: HKEY_CURRENT_USER
Key path: Software\Microsoft\Windows\CurrentVersion\Run
Value Name: com.squirrel.Teams.Teams

But we do not use Group Policy at my organization but how can we delete this key from that location so it does not execute?  Or...

Force the sestting to not auto start.

Disabling Teams AutoStart – Undocumented Features (undocumented-features.com) 


Bembi

Hello..
As each autorun entry in the registry has its own value, you should be able to remove the pair by a GPO for that regsitry key mit a remove action. 
James Rankin

This article will give you a solution so that Teams only auto-starts when the user has run Teams at least once previously

https://james-rankin.com/articles/microsoft-teams-on-citrix-virtual-apps-and-desktops-part-1-installing-the-damned-thing/
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Pkafkas

ASKER
We use MicroFocus (Novell) at my work.  We do not use GPO here.
James Rankin

Oof. You could simply use a logon script to check for the folder existence and then add the auto-start Registry value if it is there.
Pkafkas

ASKER
I do not believe my work place wants to run a script every time a user logs on.  What would be the best way to automatically remove that settings or registyy key so Teams doe snot auto - launch at login?

I removed it by manually removing teams from task manager (start up tab)  : Trigger Teams Installer for User After Machine Wide Installer - Systems Management Squad (sysmansquad.com) 

maybe run a script after the install to delete that registry key?
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\
com.squirrel.teams.teams

How to disable or enable auto start of Teams application using GPO – All about Microsoft Endpoint Manager (eskonr.com) 

reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v com.squirrel.Teams.Teams  /f

Open in new window


The only thing is that the Teams program will re-create this Regitry key after Teams is opened.  If this command can be issued at login we are good.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Steve Smith

To stop Teams from launching automatically, click on Start / Settings / Apps / Startup. Turn off Microsoft Teams 

Or for registry

  1. Open the Start Menu and type Registry Editor .
  2. Select the Registry Editor from the list.
  3. Navigate to this folder: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run .
  4. In the right-hand panel, look for an entry for Microsoft Teams and Delete it.

ASKER CERTIFIED SOLUTION
Bembi

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Pkafkas

ASKER
I can create a bundle that forces

reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v com.squirrel.Teams.Teams  /f

Open in new window


To be launched at startup on a specific device.  Unless I can find the registry equivalent for https://www.techrepublic.com/article/get-more-information-on-window-10s-startup-tab-by-enabling-additional-columns/
 
Pkafkas

ASKER
Thank you for your efforts
Your help has saved me hundreds of hours of internet surfing.
fblack61