Created
July 18, 2020 18:41
-
-
Save supermarsx/d8ce5e5400df1136f7ae7784c5d7f0af to your computer and use it in GitHub Desktop.
Exchange 2013 Shell, Set DNS lookup addresses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$SERVERNAME = "SERVERNAME" | |
$LOCALIP1 = "LOCALIP1" | |
$LOCALIP2 = "LOCALIP2" | |
Set-TransportService $SERVERNAME -ExternalDnsServer $LOCALIP1, $LOCALIP2 | |
Set-TransportService $SERVERNAME -InternalDnsServer $LOCALIP1, $LOCALIP2 | |
Set-FrontEndTransportService SERVERNAME -ExternalDnsServer $LOCALIP1, $LOCALIP2 | |
Set-FrontEndTransportService SERVERNAME -InternalDnsServer $LOCALIP1, $LOCALIP2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment