Exchange Server Migrate

      Yorum yok Exchange Server Migrate

 

$Server = "EXCH00"


$HTTPS_FQDN = "eposta.itmakale.com.tr"


Get-OWAVirtualDirectory -Server $Server | Set-OWAVirtualDirectory -InternalURL "https://$($HTTPS_FQDN)/owa" -ExternalURL "https://$($HTTPS_FQDN)/owa"


Get-ECPVirtualDirectory -Server $Server | Set-ECPVirtualDirectory -InternalURL "https://$($HTTPS_FQDN)/ecp" -ExternalURL "https://$($HTTPS_FQDN)/ecp"


Get-OABVirtualDirectory -Server $Server | Set-OABVirtualDirectory -InternalURL "https://$($HTTPS_FQDN)/oab" -ExternalURL "https://$($HTTPS_FQDN)/oab"


Get-ActiveSyncVirtualDirectory -Server $Server | Set-ActiveSyncVirtualDirectory -InternalURL "https://$($HTTPS_FQDN)/Microsoft-Server-ActiveSync" -ExternalURL "https://$($HTTPS_FQDN)/Microsoft-Server-ActiveSync"


Get-WebServicesVirtualDirectory -Server $Server | Set-WebServicesVirtualDirectory -InternalURL "https://$($HTTPS_FQDN)/EWS/Exchange.asmx" -ExternalURL "https://$($HTTPS_FQDN)/EWS/Exchange.asmx"


Get-MapiVirtualDirectory -Server $Server | Set-MapiVirtualDirectory -InternalURL "https://$($HTTPS_FQDN)/mapi" -ExternalURL https://$($HTTPS_FQDN)/mapi
Get-ExchangeServer | Get-OutlookAnywhere | fl Identity, *ternalhost*, *ticationmeth*

Set-ClientAccessService -Identity YAZEXCH01 -AutoDiscoverServiceInternalUri “https://autodiscover.yaz.com.tr/Autodiscover/Autodiscover.xml”

 

Get-ClientAccessService


Get-ClientAccessServer –Identity * | Set-ClientAccessServer –AutodiscoverServiceInternalUri "$urlpath/autodiscover/autodiscover.xml"

Set-ClientAccessService -Identity EXCH01 -AutoDiscoverServiceInternalUri "https://autodiscover.itmakale.com.tr/Autodiscover/Autodiscover.xml"


 

#ACTIVESYNC (EAS)
Get-ExchangeServer | Get-ActiveSyncVirtualDirectory | fl Identity, *ternalurl*
#AUTODISCOVER
Get-ExchangeServer | Get-ClientAccessServer | fl Identity, *ternaluri*
#EXCHANGE CONTROL PANEL (ECP)
Get-ExchangeServer | Get-EcpVirtualDirectory | fl Identity, *ternalurl*
#MAPI (MAPI) … Exchange 2013 and newer only
Get-ExchangeServer | Get-MapiVirtualDirectory | fl Identity, *ternalurl*
#OFFLINE ADDRESS BOOK (OAB)
Get-ExchangeServer | Get-OabVirtualDirectory | fl Identity, *ternalurl*
#OUTLOOK ANYWHERE (OA)
Get-ExchangeServer | Get-OutlookAnywhere | fl Identity, *ternalhost*, *ticationmeth*
#OUTLOOK WEB APP (OWA)
Get-ExchangeServer | Get-OwaVirtualDirectory | fl Identity, *ternalurl*
#EXCHANGE WEB SERVICES (EWS)
Get-ExchangeServer | Get-WebServicesVirtualDirectory | fl Identity, *ternalurl*
#OUTLOOK WEB APP (OWA)
Get-ExchangeServer | Get-OutlookAnywhere | fl Identity, *ternalhost*, *ticationmeth*

 

Get-ClientAccessService

Get-ClientAccessServer –Identity * | Set-ClientAccessServer –AutodiscoverServiceInternalUri "$urlpath/autodiscover/autodiscover.xml"

Get-ClientAccessServer |fl identity,autodiscoverserviceinternaluri

AutoDiscoverServiceInternalUri : https://vr-eb-mes-mb01.test.com/Autodiscover/Autodiscover.xml

Set-ClientAccessServer -Identity vr-eb-mes-mb01 –AutoDiscoverServiceInternalUri https://mail.test.com/Autodiscover/Autodiscover.xml

https://social.technet.microsoft.com/wiki/contents/articles/5163.managing-exchange-2010-externalinternal-url-s-via-powershell.aspx

Managing Exchange 2010 External/Internal URL’s via PowerShell
Exchange 2010 has the concept of internal and external URL’s for various virtual directories for the Client Access Server.

It is important to specify the correct values as as the SAN certificates will need to match otherwise you will encounter use issues.

Below commmands in powershell will list all the information related to virtual directory and their respective URLS.

get-AutodiscoverVirtualDirectory
get-ClientAccessServer
get-webservicesvirtualdirectory
get-oabvirtualdirectory
get-owavirtualdirectory
get-ecpvirtualdirectory
get-ActiveSyncVirtualDirectory

Add “| Fl” to the Cmdlets to see all the properties
To set the URL’s for all directories at once, run the following powershell commands (save it as a .ps1 extension and run it in EMS)

For internal URLs:

$urlpath = Read-Host “Type internal Client Access FQDN starting with http:// or https://”

Get-ClientAccessServer –Identity * | Set-ClientAccessServer –AutodiscoverServiceInternalUri “$urlpath/autodiscover/autodiscover.xml”
Set-webservicesvirtualdirectory –Identity * –internalurl “$urlpath/ews/exchange.asmx”
Set-oabvirtualdirectory –Identity * –internalurl “$urlpath/oab”
Set-owavirtualdirectory –Identity * –internalurl “$urlpath/owa”
Set-ecpvirtualdirectory –Identity * –internalurl “$urlpath/ecp”
Set-ActiveSyncVirtualDirectory -Identity * -InternalUrl “$urlpath/Microsoft-Server-ActiveSync”
External URLs:

Get-ClientAccessServer –Identity * | Set-ClientAccessServer –AutodiscoverServiceExternalUri “$urlpath/autodiscover/autodiscover.xml”
Set-webservicesvirtualdirectory –Identity * -ExternalUrl “$urlpath/ews/exchange.asmx”
Set-oabvirtualdirectory –Identity * –ExternalUrl “$urlpath/oab”
Set-owavirtualdirectory –Identity * –ExternalUrl “$urlpath/owa”
Set-ecpvirtualdirectory –Identity * –ExternalUrl “$urlpath/ecp”
Set-ActiveSyncVirtualDirectory -Identity * -ExternalUrl “$urlpath/Microsoft-Server-ActiveSync”

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

This site uses Akismet to reduce spam. Learn how your comment data is processed.