0

I have created a custom attribute in ADUC, for user account called "Employee ID".

I want to add this field in outlook address book contacts and also make this visible in the Exchange attributes when I do a "Get-mailbox -identity user".

there is also the "Employee number" attribute in Exchange but I have suppressed its use, and using "employee ID" with a script instead.

I want assistance for - Enabling the attribute in Exchange(2010) - Enable the attribute in Outlook Address book contact.

-pasha

Pasha
  • 253

1 Answers1

0

In theory you can fine tune the attributes which are used on the Offline Addressbook (which is used by Outlook)

Per default you can get them via:

Get-OfflineAddressBook "Default Offline Address List" | Select "ConfiguredAttributes"

So in theory you might try to add it via:

  1. Create a new Offline Adressbook

    New-OfflineAddressBook -Name 'Default Offline Address Book with custom fields' -Server 'Exchange01' -AddressLists '\Default Global Address List' -PublicFolderDistributionEnabled $false -VirtualDirectories 'Exchange01\OAB (Default Web Site)'

  2. Get the current Attributes and add the new one

    $attr = (Get-OfflineAddressBook "Default Offline Address Book*").configuredattributes $attr.Add("employeeID,Value")

  3. Put them Back into your new addressbook

    Set-OfflineAddressBook Default Offline Address Book with custom fields" -ConfiguredAttributes $attr

  4. Generate it

    Get-OfflineAddressBook "Default Offline Address Book with custom fields" | Update-OfflineAddressBook

  5. Assign it

    Get-DailboxDatabase MDB* | Set-MailboxDatabase -OfflineAddressBook "Default Offline Address Book with custom fields"

BUT I haven“t tested it!

BastianW
  • 2,896