Quantcast
Viewing latest article 10
Browse Latest Browse All 140

New Post: Setting Host for a dynamic Send Handler under Application\Send Ports

Please let me know if there is another way to set this. My goal to dynamically find this dynamic send handler (that matches the search criteria) and then change the host to the desired one.. As the application team switches to different hosts for testing purposes.

I was able to view information on a SendHandler (DynamicSendHandler) of a desired SendPorts for an application. However, i'm unable to set the host of a desired send handler adapter

I wanted to do something like this:

cd ".\Platform Settings\Hosts"
$hostToBe = gci | where { $_.Name -eq "ABCHOST" }

cd "....\Applications"
$sps = Get-ItemProperty -Path "XYZAPP" -Name SendPorts
$spschild = $sps.SendPorts["XYZSENDPORT"]
$spschildsh = $spschild.DynamicSendHandlers | where { $_.SendHandler.TransportType.Name -eq "SMTP" }

$spschildsh.SendHandler.Host = $hostToBe


Looking forward to your advice.

Thanks,

Viewing latest article 10
Browse Latest Browse All 140

Trending Articles