We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Windows Update Missing Patches to the report.
try { $UpdObj = @() $Updates = Invoke-Command -Session $TempPssSession -ScriptBlock { (New-Object -ComObject Microsoft.Update.Session).CreateupdateSearcher().Search("IsHidden=0 and IsInstalled=0").Updates | Select-Object Title, KBArticleIDs } $UpdObj += if ($Updates) { $OutObj = @() foreach ($Update in $Updates) { try { $inObj = [ordered] @{ 'KB Article' = "KB$($Update.KBArticleIDs)" 'Name' = $Update.Title } $OutObj += [pscustomobject]$inobj if ($HealthCheck.OperatingSystem.Updates) { $OutObj | Set-Style -Style Warning } } catch { Write-PScriboMessage -IsWarning $_.Exception.Message } } $TableParams = @{ Name = "Missing Windows Updates" List = $false ColumnWidths = 40, 60 } if ($Report.ShowTableCaptions) { $TableParams['Caption'] = "- $($TableParams.Name)" } $OutObj | Sort-Object -Property 'Name' | Table @TableParams } if ($UpdObj) { Section -Style Heading3 'Missing Windows Updates' { Paragraph "The following section provides a summary of pending/missing windows updates." BlankLine $UpdObj } } } catch { Write-PScriboMessage -IsWarning $_.Exception.Message }
Requested by User (email)
The text was updated successfully, but these errors were encountered:
Add Windows Update Missing Patches for Backup Server AsBuiltReport#149
c5530e0
rebelinux
Successfully merging a pull request may close this issue.
Description
Add Windows Update Missing Patches to the report.
Additional Context
Requested by User (email)
Before submitting
The text was updated successfully, but these errors were encountered: