Skip to content

This module is used for generating server compliance info from WSUS.

Notifications You must be signed in to change notification settings

joeypiccola/PoshWSUSReporting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PoshWSUSReporting

This module is used for generating server compliance info from WSUS. It can also be used to approve updates for WSUS groups. A majority of this was built from the guide provided by Boe Prox at https://blogs.technet.microsoft.com/heyscriptingguy/2012/01/16/introduction-to-wsus-and-powershell/.

#Examples

Review updates for a system

Get updates for a system that will be installed the next time the system installs updates

PS C:\blah> Get-PoshWSUSRComputerUpdates -FullDomainName box.ad.piccola.us -ApproveddownloadedAndReadyForInstall | select -First 2

UpdateInstallationState   : Downloaded
Title                     : Cumulative Security Update for Internet Explorer 11 for Windows Server 2012 R2 (KB3160005)
UpdateID                  : 725ba22c-7559-49d3-bfbd-d51622148d0c
FullDomainName            : {box.ad.piccola.us}
UpdateClassificationTitle : Security Updates
UpdateApprovalAction      : Install
KnowledgebaseArticles     : {3160005}
HasSupersededUpdates      : True
IsSuperseded              : False
SecurityBulletins         : {MS16-063}

UpdateInstallationState   : Downloaded
Title                     : Security Update for Windows Server 2012 R2 (KB3161561)
UpdateID                  : d299f2c3-98fc-4266-ba0c-0c600fbcd70e
FullDomainName            : {box.ad.piccola.us}
UpdateClassificationTitle : Security Updates
UpdateApprovalAction      : Install
KnowledgebaseArticles     : {3161561}
HasSupersededUpdates      : True
IsSuperseded              : False
SecurityBulletins         : {MS16-075}

Review the updates by count for a group

For all the updates that could be applicable for members of the lab01.com WSUS group, list what is needed and calculate a compliance percentage.

PS C:\blah> Get-PoshWSUSRGroup -Name lab01.com  | Get-PoshWSUSRGroupOverview | ft FullDomainName,Compliance,TotalMissingUpdates,CriticalUpdates,SecurityUpdates,LastSyncTime
0

FullDomainName       Compliance TotalMissingUpdates CriticalUpdates SecurityUpdates LastSyncTime
--------------       ---------- ------------------- --------------- --------------- ------------
ss01lab01.lab01.com  20.18 %                    178              15             163 6/30/2016 7:21:07 AM
ss02lab01.lab01.com  23.00 %                    154              15             139 6/30/2016 7:40:52 AM
ss03lab01.lab01.com  22.89 %                    155              15             140 6/30/2016 10:01:48 AM
app04lab01.lab01.com 46.90 %                    136              10             126 6/28/2016 2:21:18 PM
sql01lab01.lab01.com 20.18 %                    178              15             163 6/30/2016 9:17:25 AM
app01lab01.lab01.com 23.00 %                    154              15             139 6/30/2016 1:10:20 PM
app03lab01.lab01.com 23.00 %                    154              15             139 6/30/2016 4:04:46 AM
app02lab01.lab01.com 23.00 %                    154              15             139 6/30/2016 6:48:57 AM
dc01lab01.lab01.com  23.00 %                    154              15             139 6/30/2016 2:36:41 PM

Get needed updates for a group

List all udpates for all members of the WSUS group ad.piccola.us that are needed regardless of approval. E.g. approved and downloaded/not-downloaded or not even approved.

PS C:\blah> Get-PoshWSUSRGroup ad.piccola.us | Get-PoshWSUSRGroupMembers | Get-PoshWSUSRComputerUpdates -Needed | ft -a FullDomainName,KnowledgebaseArticles,UpdateInstallationState,UpdateApprovalAction

FullDomainName        KnowledgebaseArticles UpdateInstallationState UpdateApprovalAction
--------------        --------------------- ----------------------- --------------------
{box.ad.piccola.us}   {3109560}                        NotInstalled          NotApproved
{box.ad.piccola.us}   {3138910}                        NotInstalled          NotApproved
{box.ad.piccola.us}   {3138962}                        NotInstalled          NotApproved
{box.ad.piccola.us}   {3160005}                          Downloaded              Install
{box.ad.piccola.us}   {3161561}                          Downloaded              Install
{box.ad.piccola.us}   {3159398}                          Downloaded              Install
{box.ad.piccola.us}   {3164035}                          Downloaded              Install
{box.ad.piccola.us}   {3161664}                          Downloaded              Install
{box.ad.piccola.us}   {3161949}                          Downloaded              Install
{box.ad.piccola.us}   {3161958}                          Downloaded              Install
{box.ad.piccola.us}   {3164033}                          Downloaded              Install
{box.ad.piccola.us}   {3157569}                          Downloaded              Install
{box.ad.piccola.us}   {3164294}                          Downloaded              Install
{box.ad.piccola.us}   {3162343}                          Downloaded              Install
{rproxy.piccola.us}   {3160005}                          Downloaded              Install
{rproxy.piccola.us}   {3161561}                          Downloaded              Install
{rproxy.piccola.us}   {3159398}                          Downloaded              Install
{rproxy.piccola.us}   {3164035}                          Downloaded              Install
{rproxy.piccola.us}   {3161664}                          Downloaded              Install
{rproxy.piccola.us}   {3161949}                          Downloaded              Install
{rproxy.piccola.us}   {3161958}                          Downloaded              Install
{rproxy.piccola.us}   {3164033}                          Downloaded              Install
{rproxy.piccola.us}   {3157569}                          Downloaded              Install
{rproxy.piccola.us}   {3164294}                          Downloaded              Install
{rproxy.piccola.us}   {3162343}                          Downloaded              Install
{metro.ad.piccola.us} {3160005}                          Downloaded              Install
{metro.ad.piccola.us} {3161561}                          Downloaded              Install
{metro.ad.piccola.us} {3159398}                          Downloaded              Install
{metro.ad.piccola.us} {3164035}                          Downloaded              Install
{metro.ad.piccola.us} {3161664}                          Downloaded              Install
{metro.ad.piccola.us} {3161949}                          Downloaded              Install
{metro.ad.piccola.us} {3161958}                          Downloaded              Install
{metro.ad.piccola.us} {3164033}                          Downloaded              Install
{metro.ad.piccola.us} {3157569}                          Downloaded              Install
{metro.ad.piccola.us} {3164294}                          Downloaded              Install
{metro.ad.piccola.us} {3162343}                          Downloaded              Install

About

This module is used for generating server compliance info from WSUS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published