windows_baseline.dsc.yaml is using deprecated Microsoft.DSC metadata
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 72/100
Research direction
Read configurations/windows/windows_baseline.dsc.yaml and compare its metadata with the deprecation guidance in issue #1369 and the schema question raised in #1673. Run dsc config get --file windows_baseline.dsc.yaml to confirm the warning, then verify the updated sample runs without warnings using the appropriate schema and security context.
Written by the indexing model from the issue text.
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Summary
Usage of the Microsoft.DSC metadata has been deprecated after issue #1369.
The windows_baseline.dsc.yaml file still uses it, and issues a warning when run.
Provided samples shouldn't be using deprecated features.
Tested om 3.3.0 and 3.4.0-preview.3
The fix is very easy, but I've not yet created a pull request, because I think it should be using a newer schema?
But issue #1673 complicates things/confuses me. Maybe I should just create a pull request and wait for the feedback.
# This configuration validates a Windows system against a security baseline configuration
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
directives:
securityContext: elevated
Steps to reproduce
- run the following command:
dsc config get --file windows_baseline.dsc.yaml
Expected behavior
no warnings
Actual behavior
2026-11-26T03:07:03.201409Z WARN Using 'Microsoft.DSC' metadata to specify required security context is deprecated. Please use the 'securityContext' directive in the configuration document instead. See https://github.com/PowerShell/DSC/issues/1369 for more details.
Error details
Environment data
Name Value
---- -----
PSVersion 7.7.0
PSEdition Core
GitCommitId 7.7.0
OS Microsoft Windows 10.0.26300
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
dsc 3.3.0
Visuals
No response
- Dominant language
- Rust
- Stars
- 546
- Forks
- 84
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 25
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PowerShell/DSC
-
Issue-Bug Need-Review
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
PowerShell/DSC#1832 ·
Maintainers usually reply within 1 day
-
Area-OpenTelemetry Issue-Enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
PowerShell/DSC#1821 ·
Maintainers usually reply within 1 day
-
Issue-Enhancement Needs Triage
Difficulty 4/5 3-5 days Newbie friendliness 22/100
PowerShell/DSC#1811 ·
Maintainers usually reply within 1 day
-
Issue-Enhancement Needs Triage
Difficulty 4/5 3-5 days Newbie friendliness 30/100
PowerShell/DSC#1812 ·
Maintainers usually reply within 1 day
-
Issue-Enhancement Needs Triage
Difficulty 5/5 Over a week Newbie friendliness 12/100
PowerShell/DSC#1813 ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
autofixer: follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tursodatabase/turso#12531 ·
Maintainers usually reply within 1 day
-
bug help wanted ui
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
userFRM/egui-charts#4292 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Tripstack-Corp/spyc#1352 ·
Maintainers usually reply within 1 day