Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

DSC

Direct answer

DSC in Windows Automation uses Desired State Configuration to declare and reconcile Windows configuration while keeping configuration source, resource/module semantics, LCM behavior, reported state and actual workload acceptance distinct.

When to use this

Use it when designing, operating or troubleshooting Windows Automation behavior around DSC. Keep target scope, execution context, operation result, platform read-back and workload acceptance as separate proof boundaries.

First 30 seconds

1. DSC declares Windows configuration.

2. Push or pull.

3. Test for drift.

4. Resource modules.

5. Consider Azure Machine Configuration for cloud-managed DSC.

Operational verification

configuration → MOF → LCM → resources

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows and PowerShell automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows and PowerShell automation · Windows Automation → DSC owns DSC as a Windows automation integration point; the separate PowerShell DSC branch retains deeper DSC architecture semantics.
Scope / prerequisiteUse it when designing, operating or troubleshooting Windows Automation behavior around DSC. Keep target scope, executio…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

desired DSC config → resource/module resolution → compile/apply → LCM mode → resource Test/Set/Get → managed state read-back → workload acceptance → drift/reconciliation review

Healthy evidence: configuration/resources and LCM mode are pinned, resource evidence is preserved, managed state and workload acceptance verify.

Step 2 Failure modes and next checks Narrow the fault

Suspicious evidence: DSC compliance hides stale modules, reboot-pending state, external overwrite or a healthy resource test with a broken workload.

Step 3 Common mistakes Narrow the fault
  • DSC configurations out of sync with GPO.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Configuration compiled ≠ node applied it.
  • DSC reports desired state ≠ application behavior healthy.
  • Resource Test passes ≠ every adjacent dependency is correct.
  • Drift corrected ≠ root cause of drift understood.
Key checks
  • Get-DscConfigurationStatus — last DSC run
  • Test-DscConfiguration -Detailed — drift
  • Get-DscLocalConfigurationManager — LCM settings
ReferenceWhat it is1 section · depth on demand

Core model

Follow configuration and resource/module revisions through compilation/application, Local Configuration Manager mode and resource results to fresh configuration-state and service/workload verification.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

DSC compliance shows only declared resource state and does not guarantee application health or absence of external drift sources.

In depth

Desired State Configuration (DSC) is PowerShell's declarative configuration system: you describe how a Windows server should be configured (features, services, registry, files), and DSC applies it and can keep enforcing it. It brings idempotent, auditable configuration to Windows.

Configuration Baseline {
  Import-DscResource -ModuleName PSDesiredStateConfiguration
  Node 'localhost' {
    WindowsFeature Telnet { Name = 'Telnet-Client'; Ensure = 'Absent' }
    Registry SMB1 {
      Key = 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters'
      ValueName = 'SMB1'; ValueData = '0'; ValueType = 'Dword'
    }
  }
}
Baseline; Start-DscConfiguration .\Baseline -Wait -Verbose

For new deployments, compare DSC with Azure Machine Configuration, Ansible's DSC module support, or Group Policy, depending on whether servers are on-premises, hybrid or cloud.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows and PowerShell automation current

Authoritative/upstream documentation reviewed for bounded claims in Windows Automation > DSC. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/powershell/ · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
dsc windows automationpowershell dsc automationdesired state configuration windows
Embedded reference data

Quick lookup tables

DSC automation proof-boundary map

Fast scope, execution, platform-state and workload-acceptance boundaries for DSC.

BoundaryHealthy evidenceSuspicious evidence
Scope / identityExact source revision, hosts and execution identity are explicitSelector drift, stale inventory or wrong token changes scope/authority
OperationTool/provider action and per-host result are traceablePartial failure, hidden error semantics or environment differences are lost
Platform statePersistent and effective state are read backCommand/cmdlet success is mistaken for convergence
Workload proofOriginal service/application acceptance passesAutomation summary substitutes for actual runtime behavior
Confirmation

Confirm action

Continue?