You are not logged in.
Pages: 1
hello
i am looking for a command to uninstall teamviewer silently - i am using PDQ deploy
i tried this command "c:\program files\TeamViewer\uninstall.exe" /S but it doesnt work
any idea ?
Does teamviewer provide a msi package? if so, it should be easier to deploy or silently uninstall.
Does teamviewer provide a msi package? if so, it should be easier to deploy or silently uninstall.
Maybe i mistyped something
I will check again tomorrow
update
this did not work properly
************************************************
i ended up using this VBS script .. ran it remotely on all the domain computers
on error resume next
'Uninstall All Version of RemoveTeamViewer
'=============================
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
'Get the OS architecture
'=======================
Err.Clear
checkOSArch = WshShell.RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE")
returnValue = 0
'Wscript.Echo checkOSArch
if Err Then
Err.Clear
'WScript.Echo "The OS Architecture is unable to find ,so it was assumed to be 32 bit"
else
if checkOSArch = "x86" Then
'Wscript.Echo "The OS Architecture is 32 bit"
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
returnValue = RemoveTeamViewer (strKeyPath)
else
'Wscript.Echo "The OS Architecture is 64 bit"
strKeyPath64 = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
returnValue = RemoveTeamViewer (strKeyPath64)
strKeyPath86 = "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
returnValue = RemoveTeamViewer (strKeyPath86)
End IF
End If
Wscript.Quit returnValue
'===============================================================
'Script to Iterate the Uninstall Resistry Key and remove the Java
'===============================================================
Function RemoveTeamViewer(KeyPath)
On error resume next
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
set shell = CreateObject("WScript.Shell")
objReg.EnumKey HKEY_LOCAL_MACHINE, KeyPath, arrSubKeys
For Each Subkey in arrSubKeys
str1 = "HKEY_LOCAL_MACHINE\"&KeyPath &"\"&Subkey &"\DisplayName"
str2 = WshShell.RegRead(str1)
'Wscript.Echo str2
if InStr (str2,"TeamViewer") <> 0 then
'Wscript.Echo str2 & " -- > "& InStr (str2,"TeamViewer")
str3 = "HKEY_LOCAL_MACHINE\"&KeyPath &"\"&Subkey &"\UninstallString"
uninstallStr = WshShell.RegRead(str3)
returnValue =WshShell.Run(Chr(34)& uninstallStr & Chr(34) & " /S ",0,TRUE)
Wscript.Echo uninstallStr & " /S" & returnValue
end if
Next
End Function
Last edited by duke-of-bytes (October 9 2019)
VincentKeyboard wrote:Does teamviewer provide a msi package? if so, it should be easier to deploy or silently uninstall.
Maybe i mistyped something
I will check again tomorrow
An msi package means no need for uninstall.exe
https://www.advancedinstaller.com/user- … iexec.html It means using the native windows packaging instead.
I haven't use teamviewer but maybe this is what you are looking for https://community.teamviewer.com/t5/Kno … ta-p/36685?
Generally for mass deployments, you want to try to use msi packages if they exist and then fallback to classic setup,exe/uninstall.exe
duke-of-bytes wrote:VincentKeyboard wrote:Does teamviewer provide a msi package? if so, it should be easier to deploy or silently uninstall.
Maybe i mistyped something
I will check again tomorrowAn msi package means no need for uninstall.exe
https://www.advancedinstaller.com/user- … iexec.html It means using the native windows packaging instead.I haven't use teamviewer but maybe this is what you are looking for https://community.teamviewer.com/t5/Kno … ta-p/36685?
Generally for mass deployments, you want to try to use msi packages if they exist and then fallback to classic setup,exe/uninstall.exe
i found this before ..it requires a license
potato wrote:lebgeeks is now a tool to find solutions to our work lack of knowledge. cool.
At least it is an IT-related question.
Sometimes most of the questions are of the type "how do I do this formality in Lebanon" etc.
Also quite annoying is every few months or so someone starts a thread asking how to recover data on their hard drive, totally ignoring that this question has been asked and answered on Lebgeeks like a dozen times already.
Anyway, sorry, I invited myself to the complaining-party. Hope you don't mind.
I had pdq deploy on trial abd wanted a difficult test for a free software
I failed hard
Pages: 1