locked
Uninstalling software using WMIC RRS feed

  • Question

  • Hi Guys 

    Im trying to remotely uninstall Adobe Acrobat from several PCs

    so i use

    /node:COMPUTERNAME product get name,version

    to return the list of installed products 

    then 

    /node:COMPUTERNAME product where name="Adobe Acrobat  9 Standard - English, Français, Deutsch" call uninstall

    to call the uninstaller 

    however this returns ,- Invalid alias verb.

    if i remove the commas wmic then returns No Instances Available

    does anyone knwo how to get round this?

    Thanks

    Grant

     

    Friday, September 21, 2012 9:09 AM

Answers

  • Hi,


    If you are want to perform this command to uninstall a program of remote server, you need specify a computer name to finish it:


    Uninstall software on remote computers using WMIC

    http://systemmanagement.ro/blog/2011/07/22/uninstall-software-on-remote-computers-using-wmic/


    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


    If you want to uninstall program on local computer, based on my test, you may run WMIC command first and then perform product where name=” program name” call uninstall command.


    Regards,


    Vincent Wang

    TechNet Community Support

    • Marked as answer by Leo Huang Monday, October 8, 2012 3:36 AM
    Monday, September 24, 2012 9:02 AM

All replies

  • EDIT: My bad, the escape character in cmd.exe is the carot "^".  But it looks like you've got a second issue.  Not sure why it is not uninstalling via the GUID.




    Friday, September 21, 2012 11:10 AM
  • Hi Knuckle-Dragger

    I tried the backtick and the \ but i get the same result 

    , - invalid alias verb

    i was able to use the version number to identify it and run the uninstall

    i then get 

    Execute (\\PWS100000\ROOT\CIMV2:Win32_Product.IdentifyingNumber="{AC76BA86-1033-F400-BA7E-000000000004}",Name="Adobe Acrobat  9 Standard - English, Français, Deutsch",Version="9.4.0")->Uninstall() (Y/N/?)? Y
    Method execution successful.
    Out Parameters:
    instance of __PARAMETERS
    {
            ReturnValue = 1603;
    };

    but Acrobat still doesn't uninstall

    I guess its back to the drawing board 

    i was using the Wmic console 

    Friday, September 21, 2012 2:05 PM
  • Hi,


    If you are want to perform this command to uninstall a program of remote server, you need specify a computer name to finish it:


    Uninstall software on remote computers using WMIC

    http://systemmanagement.ro/blog/2011/07/22/uninstall-software-on-remote-computers-using-wmic/


    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


    If you want to uninstall program on local computer, based on my test, you may run WMIC command first and then perform product where name=” program name” call uninstall command.


    Regards,


    Vincent Wang

    TechNet Community Support

    • Marked as answer by Leo Huang Monday, October 8, 2012 3:36 AM
    Monday, September 24, 2012 9:02 AM
  • I know I'm chiming in late, but I saw the post and wanted to assist, if it was still needed.  What I use (in the enterprise) for one machine or a couple that I don't want to take the time to make a collection in SCCM for is this:


    WMIC /NODE:<REMOTE HOSTNAME> product where "Name LIKE '%Java Auto Updater%'" Call Uninstall

    The key part of this is to delimit the WQL query from the arguments/parameters passed. Note the single quotes encapsulating this -> ['%Java Auto Updater%']

    There are other ways to do this as I believe parentheses do work as well.  Obviously, you will need to run this with an account that has admin privileges on the remote machine, but this should work for you as it does for me.

    Dave

    • Proposed as answer by SysAdmin_Dave Monday, November 12, 2012 7:47 PM
    Monday, November 12, 2012 7:46 PM
  • You need to use parentheses to escape commas in the name:
    wmic product where (name="Adobe Acrobat  9 Standard - English, Francais, Deutsch") call uninstall
    Sunday, March 24, 2013 6:35 AM
  • I am trying to uninstall an application on remote machine but the name is not listed after entering product get name. Application is installed on the remote machine and I can even see it on Add/Remove program in control panel, but can not see it in WMIC, even I entered the name of the application based on the name which I found on control panel,  but it says : No Instance(s) availalbe , any workaround ? 
    Wednesday, September 4, 2013 7:05 AM
  • Useless advice since it is unrelated to the problem. Why on earth would someone mark this as correct when it does nothing to address the problem asked?!
    Tuesday, July 15, 2014 3:50 PM
  • I tested this (I was having the same problem) and unlike the other suggestions, this worked. Please vote up.
    Tuesday, July 15, 2014 3:51 PM
  • wmic /node:COMPUTERNAME product where "name like 'Adobe Acrobat%'" call uninstall /nointeractive
    Monday, July 31, 2017 12:23 PM