Skip to content

Add a minimum application update age to Group Policy - #1211

Open
Vaidas12345 wants to merge 2 commits into
Romanitho:developfrom
Vaidas12345:feature/minimum-update-age-review
Open

Vaidas12345 wants to merge 2 commits into
Romanitho:developfrom
Vaidas12345:feature/minimum-update-age-review

Conversation

@Vaidas12345

@Vaidas12345 Vaidas12345 commented Nov 24, 2026 •

Copy link
Copy Markdown

Proposed changes

Fixes #1153.

Adds a machine policy for a minimum application update age of 0–365 days. The default is zero. Administrators can waive the age check for one exact source|package ID|version while keeping the existing app filters and deadline settings.

WAU checks the installer's manifest release date or starts a per-version timer when it first sees an undated release. If the latest version is too new, WAU examines up to ten earlier releases between the installed and offered versions. An arguments-mod pin is evaluated on its own. The manifest author supplies the release date, so backdating can satisfy the policy immediately.

An app waiting for its release to age keeps its existing deadline. Once the installed version satisfies an arguments-mod pin, WAU removes its deadline and skips installation. Version matching accepts numeric build suffixes and distinguishes prereleases from the final release. WAU revalidates queued selections before installation. With the delay enabled, retries use winget upgrade for the selected version so WinGet can recheck applicability. Stopped retries run the normal failure hook and notification.

Validation

  • All 42 Pester tests passed on Windows PowerShell 5.1 and PowerShell 7.6. Tests cover eligibility, fallback limits, argument pins, retries, first-seen cleanup, queue filtering and deadline retention across a user-context CSV round trip.
  • The administrative template and language resources parse. An isolated Windows registry test exercised the day count, exception list and application allowlist together. A live GPO deployment running under SYSTEM remains untested.
  • A read-only check against the live 7-Zip catalog used an assumed installed version of 26.03. A one-day delay selected 26.06, a 30-day delay selected 26.05, and a 365-day delay deferred.
  • An earlier revision also completed a real per-user Microsoft NuGet upgrade with Windows App Control enforced. A 30-day delay held 7.9.0.83 and a seven-day delay installed 8.0.0.137.
  • All changed PowerShell files parse in Windows PowerShell 5.1. PSScriptAnalyzer reported the same three warnings on the affected files in upstream develop.

Related issues and prior work

Mandatory checklist

  • I linked an issue before opening this PR.
  • This PR focuses on one feature.
  • The changes remain within the scope of the linked issue.

This branch has not been deployed

No deployments
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.

1 participant