update 'SmartHostsString' attribute RRS feed

  • Question

  • I'm bringing up two new Exch 2016 servers in my Hybrid environment and need to update a Send Connector 'SmartHost' attribute so Im doing it via Powershell:

    Set-SendConnector "Contoso.com Send Connector" -SmartHosts @{Add=10.x.x.x, 10.x.x.x}; @{Remove=10.x.x.x}

    I'll figure out the syntax. But Im not seeing how to update the 'SmartHostsString' attribute.

    I'm wondering if this gets updated automagically when 'SmartHosts' gets updated? Ive got no lab to play in.


    Wednesday, September 18, 2019 3:04 PM


  • When I tried to combine on one line, while no syntax errors, only the Add worked.

    Set-SendConnector -Identity "sendConnTest" -smartHosts @{Add="", ""}; @{Remove=""}

    So I had to do this as two separate lines:

     Set-SendConnector -Identity "sendConnTest" -smartHosts @{Add="", ""}
     Set-SendConnector -Identity "sendConnTest" -smartHosts @{Remove=""}

    But to answer my question, 'SmartHostsString' was an automatically updated attribute.

    SmartHosts                   : {[], []}
    SmartHostsString             : [],[]

    Hope this helps others:)

    • Marked as answer by chad.buser Wednesday, September 18, 2019 7:00 PM
    Wednesday, September 18, 2019 6:14 PM