Skip to content

v1.98.60: WSUS server setup module#17

Merged
TheAbider merged 1 commit into
masterfrom
feature-wsus-setup
May 21, 2026
Merged

v1.98.60: WSUS server setup module#17
TheAbider merged 1 commit into
masterfrom
feature-wsus-setup

Conversation

@TheAbider
Copy link
Copy Markdown
Owner

Module 67 — WSUS server setup. RackStack now 68 modules / 179 CLI actions. PSSA 0/0, 4698 regex tests, 312 Pester. See Changelog.md.

New feature: Modules/67-WSUS.ps1 installs and configures Windows Server
Update Services (WSUS) — the on-prem update-distribution role that
RackStack-configured update clients point at.

Functions: Test-WSUSConfigured, Test-WSUSInstalled, Test-WSUSPostInstalled,
Get-WSUSUtilPath, Get-WSUSStatus, Install-WSUSRole, Invoke-WSUSPostInstall,
Set-WSUSDefaultConfiguration, Sync-WSUSCatalog, Show-WSUSManagement.

Flow: install the UpdateServices role (via the shared
Install-WindowsFeatureWithTimeout wrapper) -> run the one-time
wsusutil postinstall -> apply default config (single update language,
security classifications, daily sync schedule) -> sync the catalog.

Security:
- WSUS.ContentPath validated before being passed to wsusutil.exe:
  rejected on shell metacharacters, required to be an absolute local
  path.
- wsusutil invoked via Start-Process with array-form ArgumentList.
- Role install honors $script:RebootNeeded; CLI action stops before
  post-install if a restart is pending.

Integration (9 points): loader list, Header -Action ValidateSet,
50-EntryPoint action list + WSUSSetup dispatch handler, 48-MenuDisplay
Roles & Features menu, 49-MenuRunner dispatch, 00-Initialization config
block, 56-OperationsMenu Import-Defaults merge, defaults.example.json,
Run-Tests.ps1 Section 162 (24 tests). Module count 67->68, action
count 178->179.

PSSA 0/0, regex harness 4698/4698, Pester 312/312.
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@TheAbider TheAbider merged commit bce5d88 into master May 21, 2026
5 checks passed
@TheAbider TheAbider deleted the feature-wsus-setup branch May 21, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants