title: How to Fix Ambiguous Parameter for Powershell Script
body: <p>I am trying to copy group membership from one user to another in AD using Powershell. I get the error below. Can't seem to figure it out.</p>
  
  <pre><code>Get-ADUser -server "test.server.com" -Identity user11 -Properties memberof |
  Select-Object -ExpandProperty memberof
  Add-ADGroupMember -Member user22 
  </code></pre>
  
  <p>The error I receive is</p>
  
  <pre><code>Add-ADGroupMember : Parameter cannot be processed because the parameter name 'Member' is ambiguous. Possible matches include:
  -Members 
  -MemberTimeToLive. At line:3 char:19
  + Add-ADGroupMember -Member user22
  +                   ~~~~~~~
      + CategoryInfo          : InvalidArgument: (:) [Add-ADGroupMember], ParameterBindingException
      + FullyQualifiedErrorId : AmbiguousParameter,Microsoft.ActiveDirectory.Management.Commands.AddADGroupMember
  </code></pre>