
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.

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

Source for the above chart
** NOTE ** Make sure to use that as a reference if creating a new Address List in Exchange 2013/2016
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