locked
Converting address books from ldap to opath via script - remotepipelineexecutionfailed RRS feed

  • Question

  • Just trying to upgrade my address books and EAPs from 2003 to 2010 using this Technet blog and powershell script:

    http://blogs.technet.com/b/exchange/archive/2007/03/12/3401538.aspx

    http://gallery.technet.microsoft.com/scriptcenter/7c04b866-f83d-4b34-98ec-f944811dd48d

    When I fire up the EMS and run:

    Get-AddressList | WHERE { $_.RecipientFilterType -eq 'Legacy' } | foreach { Set-AddressList $_.Name -RecipientFilter (.\ConvertFrom-LdapFilter $_.LdapRecipientFilter) -ForceUpgrade }

    It errors with this:

    Pipeline not executed because a pipeline is already executing. Pipelines cannot be executed concurrently.

        + CategoryInfo          : OperationStopped: (Microsoft.Power...tHelperRunspace:ExecutionCmdletHelperRunspace) [],

       PSInvalidOperationException

        + FullyQualifiedErrorId : RemotePipelineExecutionFailed

    It does this whether I run it from my machine with admin tools installed or from the Exchange server directly.

    If I run:

    Set-AddressList "My Address List" -RecipientFilter ( .\ConvertFrom-LdapFilter (Get-AddressList "My Address List").LdapRecipientFilter ) 

    It works, but that's a pain as you have to run it for each address list.

    Any suggestions please?

    Thanks,

    Paul

    Wednesday, August 3, 2011 7:48 AM

Answers

  • Ah!  Fixed it by using a variable so:

    $AddressLists = get-addresslist

    $AddressLists | WHERE { $_.RecipientFilterType -eq 'Legacy' } | foreach { Set-AddressList $_.Name -RecipientFilter (.\ConvertFrom-LdapFilter $_.LdapRecipientFilter) -ForceUpgrade }

    • Marked as answer by emma.yoyo Friday, August 5, 2011 2:48 AM
    Wednesday, August 3, 2011 7:55 AM

All replies

  • Ah!  Fixed it by using a variable so:

    $AddressLists = get-addresslist

    $AddressLists | WHERE { $_.RecipientFilterType -eq 'Legacy' } | foreach { Set-AddressList $_.Name -RecipientFilter (.\ConvertFrom-LdapFilter $_.LdapRecipientFilter) -ForceUpgrade }

    • Marked as answer by emma.yoyo Friday, August 5, 2011 2:48 AM
    Wednesday, August 3, 2011 7:55 AM
  • Try again with this

    http://technet.microsoft.com/en-us/library/dd335105.aspx

    http://technet.microsoft.com/en-us/library/cc164375.aspx#UDO


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Wednesday, August 3, 2011 7:58 AM
  • Hi Paul,

    Thanks for sharing.

    Friday, August 5, 2011 2:48 AM
  • Here's another link that's pretty nice to use when updating custom LDAP queries

    http://technet.microsoft.com/en-us/library/bb738157%28EXCHG.80%29.aspx

     


    Jonas Andersson | Microsoft Community Contributor Award 2011 | MCITP: EMA 2007/2010 | Blog: http://www.testlabs.se/blog | Follow me on twitter: jonand82
    Tuesday, August 30, 2011 12:15 PM