How can I prevent MS Teams from starting after a u...
# _general
a
How can I prevent MS Teams from starting after a user logs in? 🤔 (Windows Server RDSH 2019/2022)
d
New Teams 2.x or the old version?
For new Teams, this is very tricky. You are not able to create a desktop link for the users without starting Teams once. Only after starting Teams from the start menu the user gets the files in the %LocalAppData% folder: %localappdata%\Microsoft\WindowsApps\ms-teams.exe After that you can create a desktop link for the executable. To prevent Teams from starting use the following regkey:
HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\MSTeams_8wekyb3d8bbwe\TeamsTfwStartupTask
*Value:* "State"
*Data:* 0
a
What about old version ? 🤔
d
Install Teams with
msiexec /i Teams_windows_x64.msi OPTIONS="noAutoStart=true" ALLUSERS=1
Set GPO to prevent Teams from starting at logon Remove Teams value from regkey:
HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run
I use all of these settings, honestly I don’t know which one is right… 😁
You should use a script like @Deyda’s NeverRed or my Evergreen script, it covers all of these questions and settings.
⤴️ 1
d
Yep use one of our solutions and all the little things are done for you automatically....:-P
a
Thanks 👍