title: How to use powershell to add a contact to a contact group On outlook 2010
body: <p>I just created a Distribution list:</p>
  
  <pre><code>$outlook = new-object -com Outlook.Application
  $contacts = $outlook.Session.GetDefaultFolder(10)
  $dl = $contacts.Items.Add("IPM.DistLIst")
  $dl.Save()
  </code></pre>
  
  <p>and then created a new contact</p>
  
  <pre><code>$newcontact = $contacts.Items.Add()
  $newcontact.FullName = "abc"
  $newcontact.JobTitle = "abc manager"
  $newcontact.Email1Address = "abc@abc.com"
  </code></pre>
  
  <p>How do I add this new contact to the newly created contact list?</p>
  
  <p>I have tried:</p>
  
  <pre><code>$dl.Members.Add($newcontact)
  $dl.Action.Add($newcontact)
  </code></pre>
  
  <p>But they both did not work,</p>
  
  <p>Please help, any help will be appreciated.</p>
  
  <p>Ruijie</p>