author and apply a Microsoft DSC v3 configuration document to enforce desired state on Windows Server 2025 without the old Local Configuration Manager

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. Install PowerShell 7.2+ and the standalone `dsc` executable; DSC v3 runs as a plain command rather than a background LCM service like DSC v1/v2.
  2. Write a configuration document in YAML or JSON declaring one or more DSC resource instances describing the desired end state, not the steps to reach it.
  3. Check current state against the document with `dsc config get --file <config.yaml>`.
  4. Validate compliance without changing anything using `dsc config test --file <config.yaml>`.
  5. Apply the configuration and converge the system with `dsc config set --file <config.yaml>`.

Known gotchas

Related routes

Check the current status and command-line usage model of PowerShell Desired State Configuration (DSC) v3 for a Windows automation script
learn.microsoft.com · 5 steps · unrated

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