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 Error when trying to use an add on software

    in Windows 10 Gaming
    WMI Error when trying to use an add on software: We are using an EMR Electronic Medical Records software for out staff at our therapy clinic. The power went out a couple weeks ago and when the computer shut off it must have corrupted the WMI file so the EMR software will no longer open. I have worked with them extensively...
  3. WMI Error when trying to use an add on software

    in Windows 10 Network and Sharing
    WMI Error when trying to use an add on software: We are using an EMR Electronic Medical Records software for out staff at our therapy clinic. The power went out a couple weeks ago and when the computer shut off it must have corrupted the WMI file so the EMR software will no longer open. I have worked with them extensively...
  4. WMI Error when trying to use an add on software

    in Windows 10 Software and Apps
    WMI Error when trying to use an add on software: We are using an EMR Electronic Medical Records software for out staff at our therapy clinic. The power went out a couple weeks ago and when the computer shut off it must have corrupted the WMI file so the EMR software will no longer open. I have worked with them extensively...
  5. Wildcards in Searches Using File Explorer Windows 10

    in Windows 10 Gaming
    Wildcards in Searches Using File Explorer Windows 10: There must be some kind of enabling/setting thing that I have messed up. I have a folder with two files named FileA.dox and FileB.docx. I can do a search on this folder using the search string name:FIL* and get the two files returned. I can do a search on name:*Fil* and get...
  6. Find and Replace, Word, with wildcards?

    in Microsoft Office and 365
    Find and Replace, Word, with wildcards?: I'm trying to replace in a TXT files lines of the form: [email protected]com or [email protected] with @xyz.com or @xyz.org I can't seem to find the right combination of wildcards and other settings in Word 2013. Either nothing gets replaced, or I thousands of replacements...
  7. 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...
  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...