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.
DSC
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.
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.
configuration → MOF → LCM → resources
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
Get-DscConfigurationStatus— last DSC runTest-DscConfiguration -Detailed— driftGet-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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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.
Quick lookup tables
DSC automation proof-boundary map
Fast scope, execution, platform-state and workload-acceptance boundaries for DSC.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / identity | Exact source revision, hosts and execution identity are explicit | Selector drift, stale inventory or wrong token changes scope/authority |
| Operation | Tool/provider action and per-host result are traceable | Partial failure, hidden error semantics or environment differences are lost |
| Platform state | Persistent and effective state are read back | Command/cmdlet success is mistaken for convergence |
| Workload proof | Original service/application acceptance passes | Automation summary substitutes for actual runtime behavior |