PowerShell / DSC

This repo is for the DSC v3 project
MIT License
133 stars 22 forks source link

Resource to manage Windows env vars #419

Open SteveL-MSFT opened 2 months ago

SteveL-MSFT commented 2 months ago

Summary of the new feature / enhancement

The PSDSCResource for environment has limitations that may be better suited for a rewrite as a v3 Windows only resource. Specially handle User vs System env vars (only persisted kind, not the current process) and a new model to handle PATH type variables treating them as arrays.

Proposed technical implementation details (optional)

No response

acangialosi commented 2 months ago

PSDSCResource/Environment is missing a "User" option in the Target property. Some developers have to run as standard user and can't set system environment variables. OS variables like path can't be used for custom tools paths. App specific variables like VS' IDE settings path can't be configured.