Skip to content

Instantly share code, notes, and snippets.

View oliverlabs's full-sized avatar
💭
Focus.

Oliver Gulich oliverlabs

💭
Focus.
View GitHub Profile
@oliverlabs
oliverlabs / setenvironment.dsc.yaml
Created June 20, 2023 12:05 — forked from denelon/setenvironment.dsc.yaml
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: