|
Verified as fixed in SHA b301505df2e13204ee408a05588e225fdffeacb6 on Windows 2012 R2 x64, Windows 2008 R2 x64 and Windows 2003 R2 x64. (See above comments for work-a-round on Windows 2003)
Reproduction Steps
-
Install Puppet and Windows node.
-
Add a user with Puppet:
puppet apply -e "user { 'foobars': ensure => present, managehome => true, password => 'admin123!!' }"
|
-
Verify that user "foobars" was added via the Computer Management control panel.
-
Remove user with Puppet:
puppet apply -e "user { 'foobars': ensure => absent, managehome => true, password => 'admin123!!' }"
|
-
Verify that user "foobars" was removed via the Computer Management control panel.
-
Add a user with Puppet:
puppet apply -e "user { 'foobars': ensure => present, managehome => true, password => 'admin123!!' }"
|
-
Verify that user "foobars" was added via the Computer Management control panel.
-
Remove user with Puppet:
puppet apply -e "user { 'foobars': ensure => absent }"
|
-
Verify that user "foobars" was removed via the Computer Management control panel.
Console Output
C:\Program Files (x86)\Puppet Labs\Puppet\bin>cd \
|
|
C:\>puppet apply -e "user { 'foobars': ensure => present, managehome => true, pa
|
ssword => 'admin123!!' }"
|
Notice: Compiled catalog for w2k8r2.vm in environment production in 0.25 seconds
|
|
Notice: /Stage[main]/Main/User[foobars]/ensure: created
|
Notice: Finished catalog run in 0.34 seconds
|
|
C:\>puppet apply -e "user { 'foobars': ensure => absent, managehome => true, pas
|
sword => 'admin123!!' }"
|
Notice: Compiled catalog for w2k8r2.vm in environment production in 0.23 seconds
|
|
Notice: /Stage[main]/Main/User[foobars]/ensure: removed
|
Notice: Finished catalog run in 0.08 seconds
|
|
C:\>puppet apply -e "user { 'foobars': ensure => present, managehome => true, pa
|
ssword => 'admin123!!' }"
|
Notice: Compiled catalog for w2k8r2.vm in environment production in 0.23 seconds
|
|
Notice: /Stage[main]/Main/User[foobars]/ensure: created
|
Notice: Finished catalog run in 0.17 seconds
|
|
C:\>puppet apply -e "user { 'foobars': ensure => absent }"
|
Notice: Compiled catalog for w2k8r2.vm in environment production in 0.23 seconds
|
|
Notice: /Stage[main]/Main/User[foobars]/ensure: removed
|
Notice: Finished catalog run in 0.03 seconds
|
|
C:\>
|
|