title: Powershell - Custom Attributes in an Exchange Contact
body: <p>List contacts in "Shared Public Folder":</p>
  
  <pre><code># First create Outlook object and get the Mapi namespace. 
  $Outlook       = New-Object -com Outlook.Application 
  $Namespace     = $outlook.GetNamespace("MAPI") 
  $PublicFolder  = $Namespace.Folders.Item("Public Folders - me@company.com")
  $PublicFolders = $PublicFolder.Folders.Item("All Public Folders")
  $AddressBook   = $PublicFolders.Folders.Item("Company Address Book")
  $Contacts      = $AddressBook.Items        
  foreach ($Contact in $Contacts){
      $Contact.FullName
  }
  </code></pre>
  
  <p>Each contact has a few custom attributes. Such as EmpID, "Contact Type", "IsManager"... I can't seem to figure out how to load the User-Defined property created in Outlook via Powershell.</p>
  
  <p>I've found <a href="http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopmentlegacy/thread/c870b2e2-3ef2-4a9f-a421-422b724dc43d" rel="nofollow">this post</a> that deals with: Define Custom property, then use that definition to load the custom property... but I'm not sure if that's the right place to be looking, since everything dealing with it that I try gives me errors.</p>