Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Report on all hotfixes and windows updates installed?

$
0
0

Hello Everyone

I am new here and glad to join this great forum.  I am a novice in PowerShell but diligently working to become better.

The ask I have from my manager is to create a script that will provide a report of all Microsoft (no 3rd party items yet anyway) Windows Updates, Patches, and hotfixes.  We do not utilize WSUS, the updates have been installed using various methods.  

I have tried using the get-hotfix cmdlet and found that it only pulls some items and read that is by design.  I then found some ways to get the Windows updates using:  Get-WmiObject -Class “win32_quickfixengineering”

I have not seen a powershell script anywhere that will do this and I have been at a halt on this as I can't combine these 2 commands so that I can create this report.

I need:

1.  Read list of servers from a text file which I know is gc = c:\scripts\list.txt

2. Then gather all hotfixes and windows updates, the 'description' of the hotfix or update, "KBarticle or other name', and the install date. 
(The bonus would be the option to enter a date range for the install date!), prompting would be great.

3. The systems I am running this on vary from 2003-2012

4  Export to Excel if possible or CSV

Can anyone kindly work with me on this? 

Regards,

Marie


Viewing all articles
Browse latest Browse all 6937

Trending Articles