Does I need to move & upgrade Default Address Lists from EX2003 to EX2010 Server

Status
Not open for further replies.
A

Anand Sunka

Hi All,

Before do the phase our for EX2003 server from netwrok, does I need to move & upgrade AddressLists from EX2003 to EX2010 Server by running below commands :

To move Address lists using EMS:
To upgrade All Users default address list Set-AddressList " All Users" -IncludedRecipients MailboxUsers
To upgrade All Groups default address list Set-AddressList " All Groups" -IncludedRecipients MailGroups
To upgrade All Contacts default address list Set-AddressList " All Contacts" -IncludedRecipients MailContacts
To upgrade Public Folders default address list Set-AddressList " PublicFolders" -RecipientFilter { RecipientType -eq 'PublicFolder' }
To upgrade Default Global Address List Set-GlobalAddressList " Default Global Address List" -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq 'user' -or ObjectClass -eq 'contact' -or ObjectClass -eq 'msExchSystemMailbox' -or ObjectClass -eq 'msExchDynamicDistributionList' -or ObjectClass -eq 'group' -or ObjectClass -eq 'publicFolder'))}

Any help really appreciated
Regards
Anand S
 
N

Neil Hobson [MVP]

Yes, in order to be able to manage the address lists from the Exchange Management Console in Exchange 2010, you need to upgrade them. Jaap details this in the article below:

http://www.simple-talk.com/sysadmin/exchan ge/upgrade-exchange-2003-to-exchange-2010---part-ii/

" Anand Sunka" wrote in message news:f6541897-92d7-4af2-b08f-ef82263b725b@communitybridge.codeplex .com...

Hi All,

Before do the phase our for EX2003 server from netwrok, does I need to move & upgrade AddressLists from EX2003 to EX2010 Server by running below commands :

To move Address lists using EMS:
To upgrade All Users default address list Set-AddressList " All Users" -IncludedRecipients MailboxUsers
To upgrade All Groups default address list Set-AddressList " All Groups" -IncludedRecipients MailGroups
To upgrade All Contacts default address list Set-AddressList " All Contacts" -IncludedRecipients MailContacts
To upgrade Public Folders default address list Set-AddressList " PublicFolders" -RecipientFilter { RecipientType -eq 'PublicFolder' }
To upgrade Default Global Address List Set-GlobalAddressList " Default Global Address List" -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq 'user' -or ObjectClass -eq 'contact' -or ObjectClass -eq 'msExchSystemMailbox' -or ObjectClass -eq 'msExchDynamicDistributionList' -or ObjectClass -eq 'group' -or ObjectClass -eq 'publicFolder'))}

Any help really appreciated
Regards
Anand S
Neil Hobson, Exchange MVP
 
A

Anand Sunka

Hi Neil,

Thanks 4r reply.

I successfully run above 1st three commands except this 2 commands.

To upgrade Public Folders default address list Set-AddressList " PublicFolders" -RecipientFilter { RecipientType -eq 'PublicFolder' }
To upgrade Default Global Address List Set-GlobalAddressList " Default Global Address List" -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq 'user' -or ObjectClass -eq 'contact' -or ObjectClass -eq 'msExchSystemMailbox' -or ObjectClass -eq 'msExchDynamicDistributionList' -or ObjectClass -eq 'group' -or ObjectClass -eq 'publicFolder'))}
When I run this 2 commands they both give errors.

Any help really appreciated
Regards
Anand S
 
J

Jonas Andersson [MCITP]

Hi

I posted a blog about this, but make sure you double check the format before running them

http://www.testlabs.se/blog/2010/05/11/how-to-update-legacy-email-address-policys/

Get-EmailAddressPolicy | where { $_.RecipientFilterType -eq " Legacy" } | Set-EmailAddressPolicy –IncludedRecipients AllRecipients
Set-AddressList " All Contacts" -IncludedRecipients MailContacts
Set-AddressList " All Groups" -IncludedRecipients MailGroups
Set-AddressList " All Users" -IncludedRecipients MailboxUsers
Set-AddressList " Public Folders" -RecipientFilter { RecipientType -eq 'PublicFolder' }
Set-GlobalAddressList " Default Global Address List" -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq 'user' -or ObjectClass -eq 'contact' -or ObjectClass -eq 'msExchSystemMailbox' -or ObjectClass -eq 'msExchDynamicDistributionList' -or ObjectClass -eq 'group' -or ObjectClass -eq 'publicFolder'))

Hope it will help you solve the problem
Jonas Andersson MCTS: Microsoft Exchange Server 2007/2010 | MCITP: EMA 2007/2010 | MCSE/MCSA Blog: http://www.testlabs.se/blog
 
A

Allen Song

Hi,

Yes, that is necessary. Since the legacy Address List use LDAP filter. The Exchange 2007 and Exchange 2010 are use OPATH filter.

LDAP syntax filters are supported in Exchange 2010 and will exist only on objects that have been migrated from Exchange 2003 or earlier. You must upgrade these LDAP filters to the OPATH syntax only if you want to edit the filter from an Exchange 2010 server. For example, if you have Exchange 2003 servers in your organization, you can manage the LDAP syntax filter from an Exchange 2003 server. You cannot manage or create LDAP syntax filters in Exchange 2010.

Thanks

Allen
 
A

Anand Sunka

Hi Jonas,

B4r I run below commands in EX 2010 EMS do i need to convert LDAP filters to Opath filters.

Get-EmailAddressPolicy | where { $_.RecipientFilterType -eq “Legacy” } | Set-EmailAddressPolicy –IncludedRecipients AllRecipients
Set-AddressList “All Contacts” -IncludedRecipients MailContacts
Set-AddressList “All Groups” -IncludedRecipients MailGroups
Set-AddressList “All Users” -IncludedRecipients MailboxUsers
Set-AddressList “Public Folders” -RecipientFilter { RecipientType -eq "PublicFolder" }
Set-GlobalAddressList “Default Global Address List” -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq "user" -or ObjectClass -eq "contact" -or ObjectClass -eq "msExchSystemMailbox" -or ObjectClass -eq "msExchDynamicDistributionList" -or ObjectClass -eq "group" -or ObjectClass -eq "publicFolder"))}

Waitin for ur reply

Regards
Anand S
 
J

Jonas Andersson [MCITP]

Hi Jonas,

B4r I run below commands in EX 2010 EMS do i need to convert LDAP filters to Opath filters.

Get-EmailAddressPolicy | where { $_.RecipientFilterType -eq “Legacy” } | Set-EmailAddressPolicy –IncludedRecipients AllRecipients
Set-AddressList “All Contacts” -IncludedRecipients MailContacts
Set-AddressList “All Groups” -IncludedRecipients MailGroups
Set-AddressList “All Users” -IncludedRecipients MailboxUsers
Set-AddressList “Public Folders” -RecipientFilter { RecipientType -eq "PublicFolder" }
Set-GlobalAddressList “Default Global Address List” -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq "user" -or ObjectClass -eq "contact" -or ObjectClass -eq "msExchSystemMailbox" -or ObjectClass -eq "msExchDynamicDistributionList" -or ObjectClass -eq "group" -or ObjectClass -eq "publicFolder"))}

Waitin for ur reply

Regards
Anand S
These commands are just for the default addresslists, do you have any special with complex ldap queries?

Post them here in that case

Jonas Andersson MCTS: Microsoft Exchange Server 2007/2010 | MCITP: EMA 2007/2010 | MCSE/MCSA Blog: http://www.testlabs.se/blog
 
R

Richard Hill52

Hi Jonas,

What if exchange 2003 is going to be around for a while at other sites and I am installing the first 2010 server ?

Thanks

Richard
 
J

Jonas Andersson [MCITP]

You can keep them in LDAP format if you want, but before uninstalling exchange 2003 change them to OPATH or else you can't edit the polices in EMC/EMS

Jonas Andersson MCTS: Microsoft Exchange Server 2007/2010 | MCITP: EMA 2007/2010 | MCSE/MCSA Blog: http://www.testlabs.se/blog
 
A

Anand Sunka

Hi JOnas,

After running below 2 commands its giving below error as shown :

[PS] C:\Windows\system32>Set-AddressList " Public Folders" -RecipientFilter {RecipientType -eq `PublicFolder'}

Invoke-Command : Cannot bind parameter 'RecipientFilter' to the target. Exception setting " RecipientFilter" : " Invalid f
ilter syntax. For a description of the filter parameter syntax see the command help.
" RecipientType -eq `PublicFolder'" at position 19."
At C:\Users\administrator.V2SOLUTIONS\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\casnhub.in.v2solutions.com\ca
snhub.in.v2solutions.com.psm1:40332 char:29
+ $scriptCmd = { & <<<< $script:InvokeCommand `
+ CategoryInfo : WriteError: :)) [Set-AddressList], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.SystemConfigurationTasks.SetAddress
List

[PS] C:\Windows\system32>Set-GlobalAddressList " Default Global Address List" -RecipientFilter {(Alias -ne $null -and (Ob
jectClass -eq `user' -or ObjectClass -eq `contact' -or ObjectClass -eq `msExchSystemMailbox' -or ObjectClass -eq `msExch
DynamicDistributionList' -or ObjectClass -eq `group' -or ObjectClass -eq `publicFolder'))}
Invoke-Command : Cannot bind parameter 'RecipientFilter' to the target. Exception setting " RecipientFilter" : " Invalid f
ilter syntax. For a description of the filter parameter syntax see the command help.
" (Alias -ne $null -and (ObjectClass -eq `user' -or ObjectClass -eq `contact' -or ObjectClass -eq `msExchSystemMailbox'
-or ObjectClass -eq `msExchDynamicDistributionList' -or ObjectClass -eq `group' -or ObjectClass -eq `publicFolder'))" a
t position 40."
At C:\Users\administrator.V2SOLUTIONS\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\casnhub.in.v2solutions.com\ca
snhub.in.v2solutions.com.psm1:43929 char:29
+ $scriptCmd = { & <<<< $script:InvokeCommand `
+ CategoryInfo : WriteError: :)) [Set-GlobalAddressList], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.SystemConfigurationTasks.SetGlobalA
ddressList

Rest 3 commands given below message

[PS] C:\Windows\system32>Set-AddressList " All Users" -IncludedRecipients MailboxUsers
WARNING: The command completed successfully but no settings of '\All Users' have been modified.
[PS] C:\Windows\system32>Get-EmailAddressPolicy | where { $_.RecipientFilterType -eq " Legacy" } | Set-EmailAddressPolicy
-IncludedRecipients AllRecipients
Creating a new session for implicit remoting of " Get-EmailAddressPolicy" command...

Confirm
To save changes on object " Default Policy" , the object must be upgraded to the current Exchange version. After the
upgrade, this object cannot be managed by an earlier version of Exchange Management Tools. Do you want to continue to
upgrade and save the object?
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is " Y" ): A
[PS] C:\Windows\system32>Set-AddressList " All Contacts" -IncludedRecipients MailContacts
WARNING: The command completed successfully but no settings of '\All Contacts' have been modified.
[PS] C:\Windows\system32>Set-AddressList " All Groups" -IncludedRecipients MailGroups
WARNING: The command completed successfully but no settings of '\All Groups' have been modified.
[PS] C:\Windows\system32>Set-AddressList " All Users" -IncludedRecipients MailboxUsers
WARNING: The command completed successfully but no settings of '\All Users' have been modified.

Please let us know above 3 commands are fine or not. We have 1 manually created Email Address Policy & we dnt have any extra Recipient Filters. All we have default address lists.

Any help really appreciated

Regards
Anand Sunka
 
J

Jonas Andersson [MCITP]

Hi

Ok, try this instead and give me some feedback

Set-AddressList " Public Folders" -RecipientFilter {RecipientType -eq `Public Folder'}
Set-GlobalAddressList " Default Global Address List" -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq `user' -or ObjectClass -eq `contact' -or ObjectClass -eq `msExchSystemMailbox' -or ObjectClass -eq `msExchDynamicDistributionList' -or ObjectClass -eq `group' -or ObjectClass -eq `public Folder'))}

Jonas Andersson MCTS: Microsoft Exchange Server 2007/2010 | MCITP: EMA 2007/2010 | MCSE/MCSA Blog: http://www.testlabs.se/blog
 
D

DarrenWCC

Hello

I have exactly the same problem with the two cmdlets for Public Folders and Default Global Address List. My cmdlets and errors are:

Set-AddressList " Public Folders" -RecipientFilter {RecipientType -eq " PublicFolder" }
Invoke-Command : Cannot bind parameter 'RecipientFilter' to the target. Exception setting " RecipientFilter" : " Invalid filter syntax. For a description of the filter paraeter syntax see the command help.
" RecipientType -eq PublicFolder" at position 19."
At C:\Users\DAdmin\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\mail.wcc.qld.edu.au\mail.wcc.qld.edu.au.psm1:43213 char:29
+ $scriptCmd = { & <<<< $script:InvokeCommand `
+ CategoryInfo : WriteError: :)) [Set-AddressList], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.SystemConfigurationTasks.SetAddressList

Set-GlobalAddressList " Default Global Address List" -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq 'user' -or ObjectClass -eq 'contact' -or ObjectClass -eq 'msExchSystemMailbox' -or ObjectClass -eq 'msExchDynamicDistributionList' -or ObjectClass -eq 'group' -or ObjectClass -eq 'publicFolder'))}
You can't peform this operation on default global address list " Default Global Address List" .
+ CategoryInfo : InvalidOperation: (\Default Global Address List:ADObjectId) [Set-GlobalAddressList], InvalidOperationException
+ FullyQualifiedErrorId : 7804D023,Microsoft.Exchange.Management.SystemConfigurationTasks.SetGlobalAddressList

Any help to resolve will be greatly appreciated. By the way, I have tried double and single quotes in thet cmdlet.

Thanks
Darren
 
Status
Not open for further replies.
Top