Hi folks,

I need to uninstall all version of flash player

and browser plugins on all my machines.

From Kace I can see that I have all versions  from

version-10 to version-21 and everything in between.

version 21 uninstalls fine with this script....

"wmic   product where "name like 'Adobe Flash Player%%'" call uninstall /nointeractive".

But some of the older ones are not going.

Any script, to uninstall all versions at once?

Really appreciate it.


0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0
Check the "ProductName" entry in the registry's "Uninstall" branch. This is what the WMI call will use to match against. I suspect the older ones will say something different to what you're command line is looking for.
Answered 04/14/2016 by: VBScab
Red Belt

  • Most versions have this command in the uninstall registry branch......
    "C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32_??_?_?_???_ActiveX.exe -maintain activex"

    The..... _??_?_?........is where the different version Numbers are

    how do I uninstall with this command for all the versions of flash?
Please log in to comment
0

>how do I uninstall with this command for all the versions of flash?
Stick with the WMIC command line.

>Check the "ProductName" entry in the registry's "Uninstall" branch.
Sorry...my mistake. You need to be looking at the 'DisplayName' value.

Answered 04/15/2016 by: VBScab
Red Belt

Please log in to comment
0
go to https://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html#main_Download_the_Adobe_Flash_Player_uninstaller

download that, then write a batch script with :

@echo off
CLS
echo removing old flash player

call "(File_Location)\uninstall_flash_player.exe" -uninstall

Exit

This will silently uninstall any Flash installed on the computer in one go.
Answered 04/15/2016 by: liam.creaser
Senior White Belt

  • Tried locally.......

    @echo off
    CLS
    echo removing old flash player
    call "C:\Users\admin\Desktop\uninstall_flash_player.exe" -uninstall
    Exit

    working perfectly!!!!!
    BUT..for this I would have to download it to every machine on the
    network and run the script as the logged on user.
    Problem is ... all my users don't have install or uninstall rights.


    So the best way would be to use it as a dependency in the kace via scripting.......
    That way the executable runs on every machine as "local system" with full
    rights to un install anything. So tried..........

    @echo off
    CLS
    echo removing old flash player
    call "$(KACE_DEPENDENCY_DIR)\uninstall_flash_player.exe" -uninstall
    Exit

    Not working!!!!!
    Any ideas?
    Thanks
  • Got it to work liam.
    Thanks a lot my friend.
    • No worries buddy, Did you place the file on the network and then point the Batch file to that location ? that way you wouldn't have to download it on every computer.
      • ...the ionly downside being that the System account has no network access, of course, so unless you're using a special installation user or your users have local admin rights...
Please log in to comment
Answer this question or Comment on this question for clarity

Share