Finally, we format the output by selecting and ordering properties using Format-Table (ft), auto-sizing (-a) columns.

At this stage they consider it safe to remove the Edge Subscription for the Exchange 2013 Edge Transport server, and then decommission the server itself.

As with inbound mail flow, there are often multiple scenarios that could be in place for outbound mail flow from an Exchange organization.

But with some Power Shell you could easily construct yourself a one-liner which will perform the same task.

We will first show the one-liner, after we will dissect and talk you through it.

Using the Group By parameter, we make Format-Table group the objects on a specific property, in this case Server.

Because the output can be very wide we use Out-String, specifying a large width to generate output larger than the host session without wrapping or truncating output.Until it has an Edge Subscription created, it will not yet participate in mail flow.On the Exchange 2016 Edge Transport server a new Edge Subscription file is created.When they're ready to make the change, Not Real University updates the firewall NAT rule so that inbound SMTP connections go to the Exchange 2016 Edge Transport server instead of the Exchange 2013 Edge Transport server.By sending test messages from an external mailbox, confirming they are received by the internal mailbox, and analyzing message headers just to be sure, they can validate that internal mail flow is now working through the new Exchange 2016 Edge Transport server.A DNS record is added to the internal DNS zone so that the Exchange servers in the organization can resolve the new Edge Transport server's name, which is NREDGE16.