title: bulk add managedby in powershell
body: <p>Im having a problem adding multiple managed by users for distribution groups. The command runs fine, but when i go to check the managed by users in the the distro group the only person that is added is the last person in the list of the csv file. i used this same file to add the members so im not sure why its not working.</p>
  
  <p>This is what im running</p>
  
  <pre><code>import-csv "path to file" | foreach {set-distributiongroup -identity "group name" -Managedby $_.name}
  </code></pre>
  
  <p>Anything im doing wrong? Google has not been my friend tonight. </p>