Neuinstallation OWA/ECP

Wir gehen davon aus, dass der Hostname des Servers “MAIL” ist, sich der volle FQN “mail.tino-ruge.de” schimpft und die primäre SMTP-Domäne auf “tino-ruge.de” lauscht. Die Befehle lassen sich dementsprechend anpassen

Der Mist verhaspelt sich hin und wieder bei Kunden. Also – hier die gängigen Powershell-Befehle, um OWA (“Outlook Web Access”) und ECP (“Exchange Control Panel”) beim Exchange-Server zu löschen und neu anzulegen.

Informationen sammeln

Zum OWA

Get-OwaVirtualDirectory "mail\owa (Default Web Site)"|select-object InternalUrl, ExternalUrl, BasicAuthentication,WindowsAuthentication,DigestAuthentication, FormsAuthenticationCode language: JavaScript (javascript)

Zum ECP

Get-EcpVirtualDirectory "mail\ecp (Default Web Site)"|select-object InternalUrl, ExternalUrl, BasicAuthentication,WindowsAuthentication,DigestAuthentication, FormsAuthenticationCode language: JavaScript (javascript)

Neuinstallation Virtual Directory

OWA

Remove-OwaVirtualDirectory "MAIL\owa (Default Web Site)"

New-OwaVirtualDirectory -InternalUrl "https://mail.tino-ruge.de/owa" -ExternalUrl "https://mail.tino-ruge.de/owa"Code language: PHP (php)

ECP

Remove-EcpVirtualDirectory -Identity "MAIL\ecp (Default Web Site)"

New-EcpVirtualDirectory -InternalUrl "https://mail.tino-ruge.de" -ExternalUrl "https://mail.tino-ruge.de"Code language: PHP (php)

Neuinstallation des Backends

OWA

Remove-WebApplication -Site "Exchange Back End" -Name owa

New-WebApplication -Site "Exchange Back End" -Name owa -PhysicalPath "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa" -ApplicationPool MSExchangeOWAAppPoolCode language: PHP (php)

ECP

Remove-WebApplication -Site "Exchange Back End" -Name ecp

New-WebApplication -Site "Exchange Back End" -Name ecp -PhysicalPath "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp" -ApplicationPool MSExchangeECPAppPoolCode language: PHP (php)

OAB (“Offline Address Book”)

Set-OABVirtualDirectory –Identity "OAB (default web site)" -InternalURL "https://mail.tino-ruge.de/OAB" -ExternalUrl "https://mail.tino-ruge.de/OAB"Code language: JavaScript (javascript)

EWS-URL (“Exchange Web-Service”)

Set-WebServicesVirtualDirectory –Identity "EWS (default web site)" -InternalURL "https://mail.tino-ruge.de/ews/exchange.asmx" -ExternalUrl "https://mail.tino-ruge.de/ews/exchange.asmx"Code language: JavaScript (javascript)

ActiveSync

Aktivieren

Set-AutodiscoverVirtualDirectory -Identity 'autodiscover (default Web site)'Code language: JavaScript (javascript)

Setzen der URL

Set-ActiveSyncVirtualDirectory –Identity "Microsoft-Server-ActiveSync (default web site)" -InternalURL "https://mail.tino-ruge.de/Microsoft-Server-ActiveSync" -ExternalUrl "https://mail.tino-ruge.de/Microsoft-Server-ActiveSync"Code language: JavaScript (javascript)

MAPI (“Messaging API”)

MAPI aktivieren

Set-OrganizationConfig -MapiHttpEnabled $trueCode language: JavaScript (javascript)

MAPI-URL neu setzen

Set-MapiVirtualDirectory -Identity "mapi (Default Web Site)" -InternalUrl "https://mail.tino-ruge.de/mapi" -ExternalURL "https://mail.tino-ruge.de/mapi" -IISAuthenticationMethods NTLM,NegotiateCode language: JavaScript (javascript)