AsBuiltReport / AsBuiltReport.Microsoft.AD

Repository for AsBuiltReport Microsoft Active Directory module
https://techmyth.blog/posts/homelab-ad-doc-using-asbuiltreport/
MIT License
63 stars 18 forks source link

Add table to show the pending/missing Windows updates on Domain Controllers #60

Closed rebelinux closed 2 years ago

rebelinux commented 2 years ago

Is your feature request related to a problem? Please describe. The pending/missing patch information per DC is missing on the report.

Describe the solution you'd like Add table to show the pending/missing Windows updates on Domain Controllers.

rebelinux commented 2 years ago

Reference https://gist.github.com/Grimthorr/44727ea8cf5d3df11cf7

rebelinux commented 2 years ago

Example output:

PS C:\Users\administrator.PHARMAX> $UpdateSession = New-Object -ComObject Microsoft.Update.Session
PS C:\Users\administrator.PHARMAX> $UpdateSearcher = $UpdateSession.CreateupdateSearcher()
PS C:\Users\administrator.PHARMAX> $Updates = @($UpdateSearcher.Search("IsHidden=0 and IsInstalled=0").Updates)
PS C:\Users\administrator.PHARMAX> $Updates | Select-Object Title

Title
-----
Windows Malicious Software Removal Tool x64 - v5.104 (KB890830)
2022-08 Security Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5012170)
2022-08 Cumulative Update Preview for .NET Framework 3.5 and 4.8 for Microsoft server operating system version 21H2 for x64 (KB5016595)
Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.373.1604.0)
2022-08 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5016627)

PS C:\Users\administrator.PHARMAX>
rebelinux commented 2 years ago

image