Skip to content

Instantly share code, notes, and snippets.

View denelon's full-sized avatar
🏠
Working from home

Demitrius Nelon denelon

🏠
Working from home
View GitHub Profile
@denelon
denelon / removeenvironment.dsc.yaml
Last active June 4, 2023 13:20
Checks for presence of environment variable and removes it
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.1
# Requires administrator
# Checks for presence of environment variable and removes it if it's present.
properties:
configurationVersion: '0.1.0'
assertions:
- resource: Environment
directives:
module: PSDscResources
settings:
@denelon
denelon / setenvironment.dsc.yaml
Created April 18, 2023 17:51
Sample configuration to set a machine scoped environment variable
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.1
# Requires administrator
# Checks for absences of environment variable and sets it if it's not present.
properties:
configurationVersion: '0.1.0'
assertions:
- resource: Environment
directives:
module: PSDscResources
settings:
@denelon
denelon / List.md
Last active October 31, 2023 15:36
WinGet Configure Samples

Sample configuration.dsc.yaml files

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