• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / Code / PowerShell Script to update Adobe Flash Player that avoids IE

PowerShell Script to update Adobe Flash Player that avoids IE

2015-03-16 by Jason

Pushing out Adobe Flash Player updates through a startup script got a little more complicated with Windows 8. For IE11 on Windows 8, Adobe Flash Player is updated through Windows Updates. Pushing the update out through a startup script for Windows 7 works just fine for the ActiveX and Plugin installs but on Windows 8+, the IE Adobe Flash Player update can hang and keep Windows Installer open the whole time.

To work around that limitation, the following PowerShell script will check the OS name to see if it contains “Windows 8”. If it does, it will install just the Adobe Flash Player update for plugin-based browsers like Firefox. If it does not match, it will install both the ActiveX and plugin version of the Adobe Flash Player. The script is pretty simple and straight-forward. It uses a receipt hosted on a server share to see if the update has been installed already while grabbing the latest installer from a different folder on the same server share.

# Adobe Flash update at startup script
# Jason Hamilton

$cn = $env:COMPUTERNAME
$receipt = [string]::concat("\server.fqdnsharereceiptsUpdatesFlashplayer", $cn, ".txt")

# Check if receipt exists. If so, exit
If (Test-Path $receipt){
# Receipt exists, update not needed

} else {

# Timestamp
$timestamp = get-date -f "MM/dd/yyyy HH:mm"

# Check Windows version
$osname = $(gwmi win32_operatingSystem).caption
$win8 = $osname.Contains("Windows 8")
if ($win8) {
# Install just Plugin Flash Player
msiexec /i \server.fqdnshareUpdatesFlashplayerlatest_flash_plugin.msi /passive

# Write receipt of install completed
Write-Output "Flash Player (Plugin) installed $timestamp" | Out-File -FilePath $Receipt -encoding ascii

} else {

# Install ActiveX and Plugin Flash Player
msiexec /i \server.fqdnshareUpdatesFlashplayerlatest_flash_activex.msi /passive
msiexec /i \server.fqdnshareUpdatesFlashplayerlatest_flash_plugin.msi /passive

# Write receipt of install completed
Write-Output "Flash Player (IE and Plugin) installed" $($timestamp) | Out-File -FilePath $Receipt -encoding ascii
}
}
exit

Filed Under: Code, System Administration

Trending

  • Simple Tip: Make Ping ‘Ping!’
    In Network, Software, Tech Solutions
  • Unlocker – Trace ‘in use’ files to the process
    In Software, Tech Solutions
  • Random Scripting or Scripting with Random
    In Code, Security and Privacy, Software, System Administration

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • Access to the resource [servershare] has been disallowed Access to the resource [servershare] has been disallowed
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Setup your DFS namespace with DNS for compatibility in a mixed environment Setup your DFS namespace with DNS for compatibility in a mixed environment
  • How Virtual Reality Supports Mental Health Therapy How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in