Microsoft stellt Exchange Web Services (EWS) in Exchange Online schrittweise ein. Ab Oktober 2026 wird EWS standardmäßig zunehmend deaktiviert.
Mit EWSAllowedAppIDs können Administratoren festlegen, welche Anwendungen EWS weiterhin nutzen dürfen.
Wenn EWS weiterhin benötigt wird, reicht folgendes künftig nicht mehr aus:
Set-OrganizationConfig -EWSEnabled $true
Ohne konfigurierte EWSAllowedAppIDs-Liste wird EWS trotz EWSEnabled=True blockiert.
| EWSEnabled | EWSAllowedAppIDs | Ergebnis |
|---|---|---|
| True | Leer oder Null | Alle EWS-Zugriffe blockiert |
| True | Befüllt | Nur freigegebene Apps erlaubt |
| False | Beliebig | Alle EWS-Zugriffe blockiert |
Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy | Format-List EwsAllowedAppIDs
Beispiel mit zwei erlaubten App-IDs:
Set-OrganizationConfig -EwsAllowedAppIDs "11111111-2222-3333-4444-555555555555,aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy | Format-List EwsAllowedAppIDs
# Aktuelle Liste lesen
$current = (Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy | Select-Object -ExpandProperty EwsAllowedAppIDs)
# Neue App-ID definieren
$newAppId = "99999999-8888-7777-6666-555555555555"
# Liste erweitern
$updated = @($current, $newAppId)
# Gesamte Liste zurückschreiben
Set-OrganizationConfig -EwsAllowedAppIDs ($updated -join ",")
# Aktuelle Liste lesen
$current = (Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy | Select-Object -ExpandProperty EwsAllowedAppIDs)
# Zu entfernende App-ID
$removeAppId = "99999999-8888-7777-6666-555555555555"
# Liste aufteilen
$appIds = $current -split ","
# App-ID entfernen
$updated = $appIds | Where-Object { $_ -ne $removeAppId }
# Gesamte Liste zurückschreiben
Set-OrganizationConfig -EwsAllowedAppIDs ($updated -join ",")
EwsAllowedAppIDs können bis zu 24 Stunden benötigen, bis sie wirksam werden.Set-OrganizationConfig -EwsAllowedAppIDs überschreibt immer die gesamte Liste.Set-OrganizationConfig -EwsAllowedAppIDs "AppID1,AppID2,AppID3"
Set-OrganizationConfig -EWSEnabled $true
Danach dürfen nur die angegebenen Apps weiterhin über EWS auf Exchange Online zugreifen.