This project demonstrates patching automation using PowerShell and the Windows Update API.
- Detect and list available Windows updates.
- Install updates with logging to a timestamped file.
- Generate a simple CSV-style summary from log files.
These scripts are for lab / demo use and should be adapted before production use.
Scripts/Check-Patches.ps1– Enumerates available updates.Scripts/Install-Patches.ps1– Installs updates and logs output.Scripts/Generate-Report.ps1– Parses logs into a lightweight summary.
-
Run:
.\Scripts\Check-Patches.ps1 -
Install updates:
.\Scripts\Install-Patches.ps1 -
Generate summary:
.\Scripts\Generate-Report.ps1 -
Review the generated CSV and logs in the
Logsfolder.
This demonstrates operational patch management, logging, and basic reporting.