Verify 3rd Party patches and HBSS updates with Powershell

*** THIS SCRIPT IS PROVIDED WITHOUT WARRANTY, USE AT YOUR OWN RISK ***

I put this script together in order to verify 3rd party patches and McAfee HBSS updates are being applied across the network. I do not have access to our SCCM server; luckily powershell is there to do all the heavy lifting for me.

The script will read computer names from a .txt file and will gather the following information:
Computer Name
IP address
MAC address
Last Reboot Time
Logged in User
McAfee VirusScan Version
McAfee VirusScan Scan engine version
McAfee VirusScan DAT file version
McAfee HIPs version
Flash Player ActiveX version
Flash Player Plugin Version
Java Version and Adobe Acrobat Version

All the data is output to a CSV file. The script looks for certain registry key values in order to determine version for some of the software. If you’re running different versions of the software the registry path may be slightly different.

 

Leave a Reply