Skip to content

Add AutoStart Functionality #1

@davidstan1234

Description

@davidstan1234

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions