Any ideas what the issue may be with deleting a user/member from a windows local group?
group {'remove from Administrators':
name => 'Administrators',
ensure => absent,
auth_membership => false,
members => $mymembers,
}
This is the result. Almost seems like it's trying to remove the actual group?
Error: Could not set 'absent' on ensure: (in OLE method `Delete': )
OLE error code:8007055B in Active Directory
Cannot perform this operation on built-in accounts.
HRESULT error code:0x80020009
Exception occurred. at 25:/etc/puppetlabs/code/environments/production/modules/localgroup/manifests/fallback.pp
Wrapped exception:
(in OLE method `Delete': )
OLE error code:8007055B in Active Directory
Cannot perform this operation on built-in accounts.
HRESULT error code:0x80020009
Exception occurred.
Error: /Stage[main]/localgroup::Fallback/Group[SPT Support remove from Administrators]/ensure: change from present to absent failed: Could not set 'absent' on ensure: (in OLE method `Delete': )
OLE error code:8007055B in Active Directory
Cannot perform this operation on built-in accounts.
HRESULT error code:0x80020009
Exception occurred. at 25:/etc/puppetlabs/code/environments/production/modules/localgroup/manifests/fallback.pp
↧