title: puppet add user to local windows group
body: <p>For a couple of weeks I'm struggling with puppet. I do have it pretty much working but i keep getting issues to add a user to the built-in group "Administrators".</p>
  
  <p>I do can add an user to that group, but removing is not possible. This is an local user, without a domain-controler</p>
  
  <p>Here is my manifest:</p>
  
  <pre><code>#Adding user to administrators-group;
  class developers {
      user {'user_erik':
          name            =&gt; 'Erik.dev',
          ensure          =&gt; present,
          comment         =&gt; 'Developer',
          groups          =&gt; ['Administrators],
          membership      =&gt; inclusive,
          password        =&gt; 'blaat123',
      }
  }
  #removing (not working);
  class developers {
      user {'user_erik':
          name            =&gt; 'Erik.dev',
          ensure          =&gt; present,
          comment         =&gt; 'Developer',
          groups          =&gt; [],
          membership      =&gt; inclusive,
          password        =&gt; 'blaat123',
      }
  }
  
  # another way to set this up;
  class developers {
    user {'user_erik':
          name            =&gt; 'Eric.dev',
          ensure          =&gt; present,
          comment         =&gt; 'Developer',
          groups          =&gt; [],
          membership      =&gt; inclusive,
          password        =&gt; 'blaat123',
      }
    group{'admin':
          name            =&gt; 'Administrators',
          ensure          =&gt; present,
          members         =&gt; ['Erik.dev'],
      }
  }
  </code></pre>
  
  <p>getting error:
  Error: 
  OLE error code:8007055B in Active Directory 
  " Cannot perform this operation on built-in accounts "</p>
  
  <p>In UNIX I have no problems, but windows is almost killing me and I cannot find my answer on the internet.</p>
  
  <p>Hope someone has it working.</p>
  
  <p>thanks
  Dave</p>