Powershell -noprofile -executionpolicy bypass -command "Get-AppxPackage -Name *Team* -AllUsers | Foreach " Wmic product where (name like "%%team%%") call uninstall /nointeractive If defined PackageFullName set "Teams_Path="%ProgramFiles%\WindowsApps\!PackageFullName:~1!" Set "Teams_Cmd=powershell -noprofile -executionpolicy bypass -command "Get-AppxPackage -Name *MicrosoftTeams* -AllUsers" ^| find /i "PackageFullName""įor /f "tokens=2 delims=:" %%g in ('%teams_CMD%') do set "PackageFullName=%%g" Pushd "%ProgramData%\%USERNAME%\Microsoft\Teams" & ( "%TeamSetup%" -uninstall -force-uninstall -system-level Pushd "%LOCALAPPDATA%\Microsoft\Teams" & (įor /f "tokens=*" %%g in ('dir /a/s/b update.exe') do (if not defined TeamSetup set TeamSetup=%%g) Wmic path Win32_Process where ^(name like '%%%%msteams%%%%'^) call Terminate
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |