Retrieve adobe flash version with PowerShell
Just a quick powershell script to start the year.
I recently needed to audit the version of adobe flash on the machines a script was running. This code was originally written for visual studio but translates well to powershell.
to retrieve the version of adobe flash on the local machine, use get-adobeflashversion. The code for the get-adobeflashversion can be found below:
function get-adobeflashversion{
try{
$flashobject = new-object -ComObject "shockwaveflash.shockwaveflash"
$version=(($flashobject.getvariable("`$version")).replace(",",".")).trimstart("WIN ")
}
Catch{
write-warning "Could not create Com Object, are you sure Adobe Flash is installed?"
}
return $version
}
Categories: PowerShell Scripting
Adobe, Flash, PowerShell
Thanks for this but is it the adobe or macromedia check?
They are the same thing, adobe bought macro media and haven’t renamed the com object.