The old option is not working
Assuming a 64 bit version of Windows, I found this batch script to work:
@Echo Off setlocal SET INST=%~dp0 Set "GUID=" Set "RKEY=HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" Set "PROD=TeamViewer" For /F "Tokens=2Delims==}" %%A In ('WMIC Product Where "Name='%PROD%'" Get IdentifyingNumber /Value 2^>Nul') Do Set "GUID=%%A}" msiexec.exe /x %GUID%
Change PROD to TeamViewer Host for a Host install.