Forum Discussion
Unable to uninstall Machine-wide installation on non-persistent VDI
With this article, https://docs.microsoft.com/en-us/MicrosoftTeams/teams-for-vdi#teams-cached-content-exclusion-list-for-non-persistent-setup, I was able to install Microsoft Teams 1.5 in Server 2016.
reg add "HKLM\SOFTWARE\Microsoft\Teams" /v IsWVDEnvironment /t REG_DWORD /d 1 /f
msiexec /i “C:\Temp\Teams_windows_x64.msi” /l*v “C:\Temp\Teams.log” OPTIONS="noAutoStart=true" ALLUSER=1
Results:
1. Teams will start automatically after users login. Solution: Delete this registry.
HKEY_LOCAL_MACHINE \SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run\Teams
Value Data: "C:\Program Files (x86)\Microsoft\Teams\Update.exe" --processStart "Teams.exe" --allUsers --process-start-args "--system-initiated"
2. There is no Team icon created. Solution: create it manually for users.
I have tried to uninstall teams without success.
msiexec /passive /x “C:\Temp\Teams_windows_x64.msi” /l*v “C:\Temp\TeamsUI.log”
Here is error: Teams Machines-Wide Installer - The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753.
Here is log.
MSI (s) (88:6C) [10:19:53:623]: Windows Installer removed the product. Product Name: Teams Machine-Wide Installer. Product Version: 1.5.0.11865. Product Language: 1033. Manufacturer: Microsoft Corporation. Removal success or error status: 1603.
MSI (s) (88:6C) [10:19:53:639]: Deferring clean up of packages/files, if any exist
MSI (s) (88:6C) [10:19:53:639]: MainEngineThread is returning 1603
MSI (s) (88:4C) [10:19:53:639]: RESTART MANAGER: Session closed.
MSI (s) (88:4C) [10:19:53:639]: No System Restore sequence number for this installation.
=== Logging stopped: 7/14/2022 10:19:53 ===
MSI (s) (88:4C) [10:19:53:639]: User policy value 'DisableRollback' is 0
MSI (s) (88:4C) [10:19:53:639]: Machine policy value 'DisableRollback' is 0
MSI (s) (88:4C) [10:19:53:639]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (88:4C) [10:19:53:639]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (88:4C) [10:19:53:639]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (88:4C) [10:19:53:639]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (C4:E0) [10:19:53:639]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (C4:E0) [10:19:53:639]: MainEngineThread is returning 1603
Thanks for the help.
Vincent
AlexanderIvanov should be able to point you in the right direction. If you get stuck raise a ticket to Microsoft. If you are in the Teams Community Patrick Kohler is also a great guy to know who does a lot with VDI and should be able to give you some help
Best, Chris
- VincentS2018Copper ContributorSorry, I was busy for not able to update the status.
I have figured out the solution. We normally RDP to servers with 2nd account .admin which is a member of local administrators group to install/update servers. For this specific incident, I have to use the Built-in 'Administrator' account for installation. I have tried to install/uninstall Teams several times with Built-in Administrator account and all works fine.- chris1170Copper Contributor
Were you able to uninstall Teams? We are experiencing the same issue and unfortunately Microsoft is not helping.