![]() Hopefully someone can point me in the right direction. The reason this is being done this way, is due to TeamViewer being deployed en masse using the executable, and not a custom packaged MSI. Ignore the 'SendKeys' elements for now, this is more for when the Uninstaller has launched and will attempt to make the uninstallation process seemless. $StartTVUninstaller_32 = New-Object -ComObject wscript.shell Start-Process -Filepath "-file C:\Program Files (x86)\TeamViewer\uninstall.exe" $StartTVUninstaller = New-Object -ComObject wscript.shell Start-Process -FilePath "C:\Program Files\TeamViewer\uninstall.exe" When I used this: application Get-WmiObject -Class Win32Product -Filter 'Name TeamViewer Host' application.Uninstall () Powershell removed it right away without any MSI or EXE commands. ![]() if ((gwmi win32_operatingsystem | select osarchitecture).osarchitecture -eq "64-bit") Powershell is also an option for the current version. It's almost like if it can't find the initial uninstaller, then the code stops. on all sorts of software that I couldnt remove using Powershell or WMIC. Please forgive my basic Powershell knowledge, but I've knocked together the below, and I'm getting the following error: Start-Process : This command cannot be run due to the error: The system cannot find the file specified. i would like to uninstall on any of my clients the TeamViewer Application. ![]() ![]() I was looking for some assistance with some code I've been working on, which has been designed to check your current OS architecture, and to run the relevant uninstaller for TeamViewer depending on the values returned. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |