Microsoft Teams Desinstalar/Instalar (MSI)
Quiero compartir con ustedes un pequeño script para desintalar Microsoft Teams completamente, y en su caso volverlo a instalar desde un archivo .MSI El script que elimina Microsoft Teams de nuestro equipos es el siguiente. <# .SYNOPSIS This script allows you to uninstall the Microsoft Teams app and remove Teams directory for a user. .DESCRIPTION Use this script to clear the installed Microsoft Teams application. Run this PowerShell script for each user profile for which the Teams App was installed on a machine. After the PowerShell has executed on all user profiles, Teams can be redeployed. #> $TeamsPath = [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Microsoft', 'Teams') $TeamsUpdateExePath = [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Microsoft', 'Teams', 'Update.exe') try { if ([System.IO.File]::Exists($TeamsUpdateExePath)) { Write-Host "Uninstalling Teams process" # Uninstall app $proc = Start-Process $TeamsUpdateExePath "-uninstall -s" -PassThru $proc.WaitForExit() } Write-Host "Deleting Teams directory" Remove-Item –path $TeamsPath -recurse } catch { […]

