locked
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.

    Chad

    Wednesday, September 18, 2019 3:04 PM

Answers


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

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

    So I had to do this as two separate lines:

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

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

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

    Hope this helps others:)

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