These samples require the experimental configuration feature to be enabled.
WinGet 1.5.863-preview or newer is required.
Add the following to your settings.json to enable this feature:
"experimentalFeatures": {"dependencies": true,
"configuration": true
}Run winget configure show <path to *.dsc.yaml> to see the contents of the configuration.
Run winget configure show <path to *.dsc.yaml> to run a configuration.
These need to be run as administrator. They demonstrate the "assert" section of configuration and are contrived examples to set and remove a machine scoped environment variable after asserting the presence or absence of the variable.
Note: Some of the DSC resources may not be published to the PowerShell Gallery yet.
@denelon the command under
winget configuresection should be fixed (showshould be removed)