title: PowerShell - Remove-ADGroup not allowing pipe-in from Get-ADGroup -filter
body: <p>I have the following line of code, which is supposed to get all Active Directory groups beginning with the @ symbol and then remove a user from those groups;</p>
  
  <pre><code>Get-ADGroup -Filter 'name -like "@*"' | Remove-ADGroup -identity [USERID]
  </code></pre>
  
  <p>Get-ADGroup works great, it successfully grabs all of the groups beginning with @, however I get the following error for each and every @ group when piped through to Remove-ADGroup;</p>
  
  <pre><code>Remove-ADGroup : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
  At line:1 char:41
  + Get-ADGroup -Filter 'name -like "@*"' | Remove-ADGroup -identity [USERID]
  +                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : InvalidArgument: CN=@Workplace,O...ife,DC=co,DC=uk:PSObject) [Remove-ADGroup], ParameterBindingException
  + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.ActiveDirectory.Management.Commands.RemoveADGroup
  </code></pre>
  
  <p>I can't figure out why the pipe won't work.</p>