Delete unwanted users\groups apart from the mentioned users\groups in the puppet manifest

0

I am trying to delete all the unwanted groups\users or apart from default groups\users mentioned in my manifest related to built in group " administrator" in the windows machine but no luck, its throwing error as mentioned below when i run "puppet agent -t" command from the agent.

error:

Error: (in OLE method `Remove': )
    OLE error code:8007055B in Active Directory
      Cannot perform this operation on built-in accounts.

    HRESULT error code:0x80020009
      Exception occurred.
Error: /Stage[main]/az_domain_join::Config/Group[Administrators]/members: change from

below is my puppet code:

group { 'Administrators':
        ensure          => 'present',
        members         => $_admin_groups,
        auth_membership => true,
      }

Puppet agent version - 6.15

windows
puppet
puppet-enterprise
asked on Stack Overflow Jul 28, 2020 by Docgyan

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0