WSUS report; Powershell script to get data

I am looking to get data out of my WSUS server. I need to run two monthly reports to find out how many Windows Updates were installed to my servers for each month.  I think there is some way I can use Powershell's Get-WsusComputer to get the data out.  I don't need to know what all of the updates were. I just need a total installed.  

Does anyone have an idea?  There is a InstalledOrNotApplicable variable that works with WsusUpdateInstallationState but I don't know how to put it together.  If it lists them all that's ok - I can tally things up. I just need some kind of data dump.  

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Randy DownsOWNERCommented:
Try this.

Blog details the script actions.

#region User Specified WSUS Information
$WSUSServer = 'DC1'
#Accepted values are "80","443","8350" and "8351"
$Port = 80  
$UseSSL = $False
#Specify when a computer is considered stale
$DaysComputerStale = 30  
#Send email of report
[bool]$SendEmail = $FALSE
#Display HTML file
[bool]$ShowFile = $TRUE
#endregion User Specified WSUS Information
#region User Specified Email Information
$EmailParams = @{
    To = 'user@domain.local'
    From = 'WSUSReport@domain.local'    
    Subject = "$WSUSServer WSUS Report"
    SMTPServer = 'exchange.domain.local'
    BodyAsHtml = $True
#endregion User Specified Email Information

The WSUS wasn't covered by powershell by default. So some guys have developed one module for it, named poshWSUS.
you can try to use it, it's free.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mattmcgAuthor Commented:
Thanks for the information on poshWSUS. It will take me some time to figure out how to create my report but I believe the tools are within this for me to extract the data I require.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.