View devices with Teamviewer installed under localappdata
We have an issue were we want all pieces of teamviewer uninstalled from the devices in our domain, according to kace there are 0 devices with teamviewer installed but i know some devices have the client installed from the early days of covid under the local appdata folder of the main userprofile. i've tried to create a custom inventory rule, see below, to achieve this to no avail:
ShellCommandTextReturn(cmd /q /c for /f "tokens=2 delims=\" %a in ('wmic computersystem get username') do for %A in (%a) do if exist "C:\Users\%A\AppData\Local\Temp\Teamviewer\Teamviewr.exe" (type "C:\Users\%A\AppData\Local\Temp\Teamviewer\Teamviewr.exe"))
what piece am i missing here? is the code incorrent or is there a better way of doing this im not seeing. thanks for the help in advance!
-
Instead of the command type, use echo - flip1001 3 years ago
Answers (0)
Be the first to answer this question