PowerShell / PSDscResources

MIT License
129 stars 53 forks source link

Environment: Implement 'User' target #195

Open rifftual opened 3 years ago

rifftual commented 3 years ago

Details of the scenario you tried and the problem that is occurring

Needed to add environment variables for specific users but it's not supported.

Verbose logs showing the problem

Suggested solution to the issue

Implement support for User target.

The DSC configuration that is used to reproduce the issue (as detailed as possible)

The operating system the target node is running

OsName               : Microsoft Windows Server 2019 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

Version and build of PowerShell the target node is running

PSVersion                      5.1.17763.1490
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.1490
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version of the DSC module that was used ('dev' if using current dev branch)

dev

PlagueHO commented 3 years ago

Hi @rifftual, this module PSDscResources is intended to be a feature compatible replacement of the in-box PSDesiredStateConfiguration resources. So only really bug fixes are made to this module. For enhancements to the module, recommend logging this with the community version of the module: xPSDesiredStateConfiguration: https://github.com/dsccommunity/xPSDesiredStateConfiguration/issues

Apologies for the delay in getting back to this.