-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AutoStart Functionality #1
Comments
Just did a quick check and it seems as if ..\MSTeams_8wekyb3d8bbwe RegKey gets overwritten when a new user logs in. |
RunOnce will not work as that would set the RegValue too late, but even doing a quick test doing that didn't set the value (probably the key was overwritten). |
Same, I have been unable to successfully get this to work. Will add some feedback in the app to Microsoft Devs and might open a case. |
I have been working on this as well and it appears that the new install creates the correct registry keys for the installing user, however autostart doesn't kick in unless either of these keys gets set. Key: HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\MSTeams_8wekyb3d8bbwe Key: HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\MSTeams_8wekyb3d8bbwe\TeamsTfwStartupTask |
@AdamGrossTX @davidstan1234 Did any of you find a working solution or workaround for this? |
Unfortunately, no. There is a feature request with Microsoft but we have come to the conclusion that the user will need to launch Teams the first time for the autostart to kick in. I could not find a way around it. |
just an idea. Use a user-context GPO to set the RUN ONCE for each user.
|
Teams will not auto run automatically for NEW User Profiles after teams was installed. Commonly in new build or bare metal scenarios, the system account is instlling teams and before a user logs in. Enabling this key should force teams to auto start after installation for any NEW users that login to the machine. This is helpful for bare metal builds. This is a work in progress, but it should be something like this:
Reg.exe load HKLM\DefaultUser C:\users\default\NTUSER.DAT
$RegItem = @{
Path = "HKLM:\DefaultUser\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\MSTeams_8wekyb3d8bbwe\TeamsTfwStartupTask"
Name = "State"
Value = "2"
}
#Enable MSTeams first time startup for all default users
$Path = Get-Item -Path $RegItem.Path -ErrorAction SilentlyContinue
If ($null -eq $Path) {New-Item -Path $RegItem.Path}
New-ItemProperty $RegItem.Path -Name $RegItem.Name -PropertyType DWORD -Value $RegItem.Value -Force
reg.exe unload HKLM\DefaultUser
Possibly create a new switch parameter along the lines of "SetAutoStart"
The text was updated successfully, but these errors were encountered: