title: Powershell Add Local Group to Local Group
body: <p>I'm able to properly add a local user to a local group on my machine, but I can't add a local group to another local group.  What is the syntax for this?</p>
  
  <pre><code>$targetGroup = [ADSI]"WinNT://$computerName/$targetGroupName,group"    
  $targetGroup.Add("WinNT://$computerName/$groupName")
  </code></pre>
  
  <p>The above results in this error:</p>
  
  <pre><code>Exception calling "Add" with "1" argument(s): "A new member could not be added to a local group because the member has the wrong account type.
  </code></pre>
  
  <p>I'm trying to add a local group to a local group, in Windows Server 2012.</p>