Exchange Server 2016 – New-AddressList

While working with a customer to create some new Address Lists in Exchange 2016, I found that I was unable to use one of the examples listed in PowerShell to do it. This same example is present in Exchange 2013 as well. To see what examples are available, simply run ‘Get-Help New-AddressList -Examples’

newaddresslist01
However, following Example 3, the query fails. The OPATH filter query fails because the Recipient Types do not match in the New-AddressList cmdlet. In example 3, the Recipient Type filtered for us ‘MailboxUser’. However, when this filter is actually used, it fails with a Syntax error. Checking for obvious problems with quotes and brackets does not reveal any issues with the syntax in question. Checking the mailbox, we can see that the ‘RecipientType’ shows as a ‘UserMailbox’. After correcting the filter to “UserMailbox”, the Address List creation cmdlet works.

newaddresslist02b
A small sample of valid recipient types for filtering in this cmdlets are as follows:

newaddresslist3

Source for the above chart

** NOTE ** Make sure to use that as a reference if creating a new Address List in Exchange 2013/2016

Advertisements

One thought on “Exchange Server 2016 – New-AddressList

  1. Hi,

    Not sure where I should post this, but your script located at https://gallery.technet.microsoft.com/office/Install-Exchange-2016-48983e13 is setting a few registry keys to the incorrect type. Specifically

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 128/128
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 40/128
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 56/128

    Enabled is set to a REG_SZ when it should be a DWORD. Email me if you have any questions.

    – Jeff

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s