Anyone have teamsbootstrapper.exe Uninstall Classic Teams Install New Ver. Method

Anyone have a good PSADT method for Uninstalling Teams Classic and installing the New version for all users using the teamsbootstrapper.exe?

V4 prefered but if you have a V3 method that would be great to.

Asking for a friend…

Here is the minimum info your friend needs. The upgrade can be done in many different ways, we rolled out the new version first so the user could run either version during a migration period. After some time they got New Teams configured as default and we uninstalled Teams Classic on all computers.

Installing new Teams:
$Result = Execute-Process -Path "teamsbootstrapper.exe" -Parameters "-p -o $DirFiles\MSTeams-x64.msix" -PassThru -ExitOnProcessFailure $false -WindowStyle "Hidden"

Uninstalling Teams Classic:
$Result = Execute-MSI -Action 'Uninstall' -Path '{731F6BAA-A986-45A4-8936-7C3AAAAA760B}' -PassThru

But if you’re moving over to the “new” client, it will automatically uninstall the classic but requires a reboot.

@JFP and @gunwee

Thanks for the helpful info. I will have “my friend” check these methods out.