Per user Release not stated
Supported on: windows:SUPPORTED_Windows7
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKCU\software\policies\microsoft\office\16.0\teams |
|---|
| Value name | preventfirstlaunchafterinstall |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
This policy setting controls whether Microsoft Teams starts automatically when the user logs into a device after Teams is installed.
If you enable this policy setting, Teams does not start automatically when the user logs in to the device and the user has not started Teams previously.
Note: If you enable this policy setting, you must do so before Teams is installed.
Once a user starts Teams for the first time, Teams is configured to start automatically the next time the user logs into the device.
If you disable or don’t configure this policy setting, Teams automatically starts when a user logs in to the device after Teams is installed.
Note: The user can configure Teams not to start automatically by configuring user settings within Teams.
Group Policy path: User Configuration > Administrative Templates > Microsoft Teams > Prevent Microsoft Teams from starting automatically after installation
PowerShell equivalent (generated from the template)
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\teams' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\teams' -Name 'preventfirstlaunchafterinstall' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Microsoft 365 Apps and OfficeADMX: teams16.admx · policy name Teams_PreventFirstLaunchAfterInstall_Policy
Per user Release not stated
Supported on: windows:SUPPORTED_Windows7
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKCU\software\policies\microsoft\office\16.0\teams |
|---|
| Option | Value | Type | Allowed values |
|---|
| Tenant IDs: | restrictteamssignintoaccountsfromtenantlist | REG_SZ | Text |
What it does (vendor explanation)
This policy setting allows you to control the accounts that can be used in Teams on managed devices running Windows.
If you enable this policy setting, users will only be allowed to sign in with accounts from Azure Active Directory (Azure AD) tenants that you specify. You can enter a comma separated list of tenant IDs.
The policy setting applies to all ways that the user signs in, including first and additional accounts on versions of Teams that support multiple accounts side by side.
The policy setting is also enforced when users sign out and sign back in.
If you disable or don't configure this policy setting, Teams will continue to allow users to sign in with work or school accounts, or personal Microsoft accounts.
Important: This policy setting only restricts which users can sign in. It does not restrict the ability for users to be invited as a guest in other Azure AD tenants, or switch to tenants they were invited to.
Note: This policy does not apply to Teams web app.
Group Policy path: User Configuration > Administrative Templates > Microsoft Teams > Restrict sign in to Teams to accounts in specific tenants
PowerShell equivalent (generated from the template)
# Tenant IDs:
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\teams' -Name 'restrictteamssignintoaccountsfromtenantlist' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Microsoft 365 Apps and OfficeADMX: teams16.admx · policy name String_Teams_SignInRestriction_Policy