Closed rick-bennett closed 1 year ago
Facing the same problem - can't completely remove variables.
My specific use-case is I'm trying to remove the default windows user path variable:
windows_env { 'bad_user_path':
ensure => absent,
mergemode => clobber,
variable => 'PATH',
user => 'vagrant',
}
Hi, based on a discussion in https://groups.io/g/voxpupuli/message/449 we decided to archive this repository. I'm going to close all issues and PRs. If you're interested in maintaining the module, please respond to our mailinglist.
I'm testing out using version 4.0.1 of the module against Puppet 6.17.0 on a Windows 10 device (Version 1909 Build 18363.10.16), and am unable to completely remove an environment variable.
This successfully creates the variable:
However, this fails to remove the variable:
I can see the 'VariableX' entry at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment, and have restarted at different points in my testing. All with the same result. I can remove the Value of the variable, but not the entire variable itself (even though the ReadMe states the above command should remove the variable completely).
Is this a bug?