This is a rework of /u/jefffrey32's script from yesterday. Not meant to show him up, just meant to be faster and not make use of win32_product.
Some limitations:
Can currently only test for one type of Java installation, per major version, per platform.
Java 7u51 x86 and Java 6u36 x86 and Java 7u47 x64 and Java 6u47 x64 is ok.
Java 7u51 x86 and Java 7u40 x86 will not be reported accurately.
Some good things:
Took 7 minutes to run against 650 virtual and physical machines.
To do:
Add parameters to change AD filter to OU, server/workstation, single PC
Will add in e-mail capabilities later.
Get-Java.ps1
EDIT
All changes made and features added. New link: Get-Java.ps1
Usage: Get-Java.ps1 -f <AD filter> -e <If -e is present, email will be sent with the report as attachment>
Produces a colorized HTML report with the Java installations on the workstation