Author and apply a WinGet Configuration YAML file to declaratively set up a Windows development environment

domain: learn.microsoft.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Author a WinGet Configuration file in YAML that declares the desired end-state (packages, settings) rather than an imperative sequence of install commands, following the WinGet Configuration file schema.
  2. Reference PowerShell DSC resources within the configuration file's resource blocks to express each desired-state item (e.g. installing an app, applying a setting).
  3. Apply the file by running `winget configure` and pointing it at the YAML file; winget parses the file, validates it, and downloads the PowerShell modules containing the required DSC resources.
  4. Ensure the machine has a WinGet client version new enough to support the configure command before relying on it in unattended provisioning.
  5. Re-run the configuration idempotently after provisioning to converge any drift back to the declared state.

Known gotchas

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans