79 lines
2.5 KiB
INI
79 lines
2.5 KiB
INI
###############################################
|
|
# Windows Updater - Configuration
|
|
# Lines starting with # or ; are comments
|
|
# Copy this file to config.ini and adjust values
|
|
###############################################
|
|
|
|
[General]
|
|
# Path for log files (one file per day)
|
|
LogPath = C:\logs\windows-updater
|
|
# Number of days to keep log files (default: 365)
|
|
LogRetentionDays = 365
|
|
# Dry-run mode: scan and report only, do not install (true/false)
|
|
DryRun = false
|
|
|
|
[WindowsUpdate]
|
|
# Use Microsoft Update (includes Office, .NET, drivers) instead of Windows Update only
|
|
UseMicrosoftUpdate = true
|
|
# Exclude specific KB articles (comma-separated, e.g. KB1234567,KB7654321)
|
|
ExcludeKBs =
|
|
# Exclude driver updates (true/false)
|
|
ExcludeDrivers = false
|
|
# Number of retry attempts for failed updates (default: 3)
|
|
RetryCount = 3
|
|
|
|
[Winget]
|
|
# Enable winget upgrade --all (true/false, default: false)
|
|
# Only works on Windows 10/11 with winget installed, auto-skipped if unavailable
|
|
Enabled = false
|
|
|
|
[Reboot]
|
|
# Enable automatic reboot after updates if required (true/false)
|
|
Enabled = false
|
|
# Reboot mode: immediate, delayed, scheduled
|
|
Mode = immediate
|
|
# Delay in minutes before reboot (only for Mode = delayed)
|
|
DelayMinutes = 5
|
|
# Time to reboot at in HH:mm format (only for Mode = scheduled, e.g. 03:00)
|
|
ScheduledTime = 03:00
|
|
|
|
[Notification]
|
|
# --- ntfy ---
|
|
NtfyEnabled = false
|
|
# ntfy server URL (e.g. https://ntfy.sh or your self-hosted instance)
|
|
NtfyUrl = https://ntfy.sh
|
|
# ntfy topic name
|
|
NtfyTopic = windows-updates
|
|
# ntfy access token (leave empty if not required)
|
|
NtfyToken =
|
|
# ntfy priority: min, low, default, high, urgent
|
|
NtfyPriority = default
|
|
|
|
# --- Email ---
|
|
EmailEnabled = false
|
|
SmtpServer = smtp.example.com
|
|
SmtpPort = 587
|
|
SmtpUseSsl = true
|
|
SmtpUsername =
|
|
SmtpPassword =
|
|
EmailFrom = updater@example.com
|
|
# Multiple recipients comma-separated (e.g. admin@example.com,ops@example.com)
|
|
EmailTo = admin@example.com
|
|
# Send HTML formatted report with update table (true/false)
|
|
EmailHtmlReport = true
|
|
|
|
[Hooks]
|
|
# Path to PowerShell script to execute BEFORE updates (leave empty to disable)
|
|
PreUpdateScript =
|
|
# Abort update process if pre-hook script fails (true/false)
|
|
AbortOnPreHookFailure = false
|
|
# Path to PowerShell script to execute AFTER updates (leave empty to disable)
|
|
PostUpdateScript =
|
|
|
|
[History]
|
|
# Enable persistent update history tracking (true/false)
|
|
Enabled = false
|
|
# Path for the history file
|
|
# Uses .xlsx format if ImportExcel module is available, otherwise falls back to .csv
|
|
HistoryPath = C:\logs\windows-updater\update-history
|