Windows 10: Using WMI to remove software with wildcard or variable names?

Discus and support Using WMI to remove software with wildcard or variable names? in Windows 10 Customization to solve the problem; Hello all – We have multiple versions of teamviewer softwareon multiple PCs. I need to get rid of them all about 1500 installs and using WMI commands... Discussion in 'Windows 10 Customization' started by net1994, Apr 12, 2021.

  1. net1994 Win User

    Using WMI to remove software with wildcard or variable names?


    Hello all – We have multiple versions of teamviewer softwareon multiple PCs. I need to get rid of them all about 1500 installs and using WMI commands is a goodbet it seems like. I don’t want tocreate long scripts with MSI Product code uninstall strings and what not. On our PCs. Installed TeamViewer is a mix ofversions and products. In Add/Removeprograms, it might be:


    TeamViewer Host

    TeamViewer 6

    TeamViewer 13

    TeamViewer


    As there are multiple ways to remove each version, I’dlike a ‘catch all’ using a common variable and WMI commands. I can do a simple task kill on the runningEXE and to close the running program. So, I thought to use:


    wmic product where "name like 'TeamViewer%%'"call uninstall


    I ran the above with admin creds on a local pc with ‘TeamViewer6’ installed. However, it says noinstance found, even though it’s in Add/Remove programs. Can you see a syntax error with that commandline?

    :)
     
    net1994, Apr 12, 2021
    #1
  2. OldW7Guy Win User

    File Explorer Search fails wildcard partial numeric name search.

    The indexing trouble shooter did not find any problem.
    System File Check result was: Windows Resource Protection did not find any integrity violations.
    Deployment Image Servicing and Management tool Version: 10.0.10586.0 found No component store corruption detected.

    I do not believe that my system has any problem as the wildcard partial numeric name search issue occurs on all Windows 10 systems of family and friends.
    I believe the priority of this issue should be raised because the Search Results vary depending on the number of files involved creating confusion and incorrect results. With less than 40 files the wildcard partial numeric name search returns the correct
    results. With more than 50 files the wildcard search becomes a whole number search only listing files that have the exact number. With *2345 in the search box and more than 50 files in focus, Search will Not list 123456.txt but will only list 2345.txt.
    With less than 40 files in focus All files with any numeric string containing 2345 will be listed.
     
    OldW7Guy, Apr 12, 2021
    #2
  3. Vesao Win User
    Remove account

    I suggest you backup your personalized files first before removing the account.
    To delete an account, follow these steps:
    1. Press WIN + X keys and click Command Prompt (Admin) from the menu.
    2. Type the following command and press Enter. Replace test with the name of your sister's account. Code:
     
    Vesao, Apr 12, 2021
    #3
  4. MCK
    mck Win User

    Using WMI to remove software with wildcard or variable names?

    System environment variable won't stick

    Running Win10 Home on an Acer Spin 3, 64bit, i7cpu. I try to add a path to the system environment variables by:

    1. Control Panel > System > Advanced system settings > Advanced tab > Environment variables

    2. The "Environment Variables" window opens.
    3. In the "System Variables" pane I select "Path" and click the EDIT button.
    4. A list of the current system paths is displayed.
    5. I click the NEW button, browse to the path I want to add which is "C:\Python36-32" and click OK. The path "C:\Python36-32" is added to the list of current system paths.
    6. I click OK and am returned to the "Environment Variables" window.
    7. I click the "X" at the top right to close the "Environment Variables" window.

    Now if I click the "Environment Variables" button again (end of step-1) and repeat steps 2-4, the new path I added in step-5 is gone. IOW, adding a new path won't stick.

    What am I doing wrong?
     
Thema:

Using WMI to remove software with wildcard or variable names?

Loading...
  1. Using WMI to remove software with wildcard or variable names? - Similar Threads - Using WMI remove

  2. WMI SecurityCenter2 AntiVirusProduct shows a deleted antivirus name

    in AntiVirus, Firewalls and System Security
    WMI SecurityCenter2 AntiVirusProduct shows a deleted antivirus name: wmic /node:localhost /namespace:\\root\SecurityCenter2 path AntiVirusProduct Get DisplayName findstr /V /B /C:displayName When i use this command, it yields a name of an antivirus, which was deleted from the system and is no longer available It detects Kaspersky antivirus....
  3. Removing software

    in AntiVirus, Firewalls and System Security
    Removing software: Hiya, I had previously installed an antivirus software but have since installed McAffe and removed the old software. However, even though I have uninstalled this program and no files of it are on my computer it still shows up when I right-click on a folder, application or...
  4. Software removal

    in Windows 10 Drivers and Hardware
    Software removal: I have a problem with the antivirus and the support vendor asks me to remove the entire suite HP. the programs installed are: Can I remove all these programs and my notebook will continue to work well? thank you...
  5. Qualified Path Wildcard?

    in Windows 10 Support
    Qualified Path Wildcard?: Microsoft Windows Version 10.0.18363.836 1909 Pro Administrator: Admin cmd C:\>"C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2005.5-0\MpCmdRun.exe" -SignatureUpdate Signature update started . . . Signature update finished. C:\>"C:\ProgramData\Microsoft\Windows...
  6. Wildcard Selection in Explorer

    in Windows 10 Software and Apps
    Wildcard Selection in Explorer: Is there an app or program that allows wildcard selection of items in explorer before a copy/cut/ action? Right click or menu bar or both. Alternatively, does anyone recommend a good shell extension coder that can help? I found code for a context menu wild card selection...
  7. WMI Provider Host using lots of CPU

    in Windows 10 BSOD Crashes and Debugging
    WMI Provider Host using lots of CPU: Hi, I am using a less than 2 month old Lenovo V110 laptop that is running an AMD A9-9410 Radeon R5 processor, and I have been having problems with a loud fan, and overheating. I checked the task manager, and found out that the WMI Provider Host is using large amounts of CPU...
  8. icacls remove user variable

    in Windows 10 Support
    icacls remove user variable: Does anyone know how to use a variable for the user name to remove from file permissions using the icacls or some other command? I'm trying to get a command to use for this to have a remove "Account Unknown" context menu to make it easier to remove them. "Account Unknown*"...
  9. icalcs remove user variable

    in Windows 10 Support
    icalcs remove user variable: Does anyone know how to use a variable for the user name to remove from file permissions using the icacls or some other command? I'm trying to get a command to use for this to have a remove "Account Unknown" context menu to make it easier to remove them. "Account Unknown*"...
  10. script to remove all apps by a specific vendor using wildcard name

    in Windows 10 Installation and Upgrade
    script to remove all apps by a specific vendor using wildcard name: Im wondering if it would be possible to install a/all program(s) based a search of the vendor. Running the PS command below I get a list of all installed programs, including their vendors, which is great. However I've noticed in the case of SMARTTech/SMARTBoard programs...