Adobe Flash Player removal Script failing in Windows Devices

Nair, Aneesh 0 Reputation points
2024-01-19T10:10:35.6333333+00:00

Hello, We are trying to push a Remediation script via Intune to remove all adobe flash player installs from all Windows devices. We have some stale entries with Adobe Flash player here. I already tried the script mentioned in the below MS community page https://learn.microsoft.com/en-us/answers/questions/1295848/how-to-remove-uninstall-adobe-flash-player-via-int. $version = ((Get-ChildItem 'C:\Windows\SysWOW64\Macromed\Flash').name -match "FlashUtil32_(.*).exe")[0].split('')[1].split('.')[0] $uninstallCommand = "C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32$($version).exe -uninstall -force" Invoke-Expression $uninstallCommand But no Luck.

Here is the error from Intune Device status.


C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32_30.exe : The term 

'C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32_30.exe' is not recognized as the name of a cmdlet, function, script 

file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct 

and try again.

At line:1 char:1

+ C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32_30.exe -uninstall -for ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (C:\Windows\SysW...shUtil32_30.exe:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,555 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 51,896 Reputation points Microsoft Vendor
    2024-01-22T01:40:14.1266667+00:00

    @Nair, Aneesh, Thanks for posting in Q&A. From the error message, the Adobe Flash Player is failed to remove. From the error message, it seems the file "FlashUtil32_30.exe" under "C:\Windows\SysWOW64\Macromed\Flash" is not existing for the version you installed.

    For your issue, you can contact Adobe support to get the uninstall PowerShell command now. https://community.adobe.com/

    Note: Non-Microsoft link, just for the reference.

    After we get the command, try to test on one device. If it is successful, then we can consider deploying it via Intune.

    Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.