/build/static/layout/Breadcrumb_cap_w.png

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!



1 Comment   [ + ] Show comment
  • Instead of the command type, use echo - flip1001 1 week ago

Answers (0)

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ