marta1993

Exchange unbeaufsichtigte Installation schlägt fehl

Hallo Zusammen,

wir möchten gerne unsere Exchange Rolling Update Installationen teilweise automatisieren.
Aktuell testen wir dies in einer eigens dafür geschaffenen Umgebung.
Folgende Konfiguration hat die Umgebung:
1x DC -Win Srv 2016
6x Exchange - Win Srv 2016 - 5 davon in DAG, 6. soll automatisch hinzugefügt werden.
1x Witness - Win Srv 2016

Die Konfiguration der Server funktioniert schon nahezu perfekt. Ebenfalls die Einbindung in die DAG.
Leider können wir den Exchange nicht automatisch mittels Powershell installieren. Wir haben auch schon versucht die Windows Features vorher zu installieren.

Installieren wir einen Exchange Server jedoch mittels GUI, klappt alles wunderbar.

Benutzen wir folgenden Powershell Befehl:
$rval=( Start-Process -FilePath ($driveLetter+":\setup.exe") -ArgumentList ("/mode:Install", "/InstallWindowsComponents", "/IAcceptExchangeServerLicenseTerms", "/TargetDir:E:\Program Files\Microsoft\Exchange Server\V15\", "/OrganizationName:Contoso", "/Roles:MB", "/DisableAMFiltering") -NoNewWindow -PassThru -Wait).Exitcode  

Bekommen wir folgenden Fehler:
[05.07.2020 09:48:16.0718] [2] [ERROR] Fehler beim Erstellen des virtuellen IIS-Verzeichnisses 'IIS://ex06.contoso.de/W3SVC/2/ROOT/owa' auf 'EX06'.  
[05.07.2020 09:48:16.0718] [2] [ERROR] ISAPI extension owaauth.dll in group MSExchangeClientAccess wasn't found and its status can't be changed. Please make sure this ISAPI extension (IIS Web service extension) is still listed in IIS Manager. If it's not, it may need to be added again.  
[05.07.2020 09:48:25.0558] [2] [ERROR] Fehler beim Erstellen des virtuellen IIS-Verzeichnisses 'IIS://ex06.contoso.de/W3SVC/2/ROOT/owa' auf 'EX06'.  
[05.07.2020 09:48:25.0558] [2] [ERROR] ISAPI extension owaauth.dll in group MSExchangeClientAccess wasn't found and its status can't be changed. Please make sure this ISAPI extension (IIS Web service extension) is still listed in IIS Manager. If it's not, it may need to be added again.  
[05.07.2020 09:48:25.0558] [2] Ending processing new-OwaVirtualDirectory
[05.07.2020 09:48:25.0558] [2] Die Active Directory-Sitzungseinstellungen für 'Set-OwaVirtualDirectory' lauten: Vollständige Gesamtstruktur anzeigen: 'True', Konfigurationsdomänencontroller: 'dc01.contoso.de', Bevorzugter globaler Katalog: 'dc01.contoso.de', Bevorzugte Domänencontroller: '{ dc01.contoso.de }'  
[05.07.2020 09:48:25.0558] [2] User specified parameters:  -Identity:'EX06\OWA (Exchange Back End)' -FormsAuthentication:'False' -WindowsAuthentication:'True'  
[05.07.2020 09:48:25.0558] [2] Beginning processing set-OwaVirtualdirectory
[05.07.2020 09:48:25.0573] [2] Searching objects "EX06\OWA (Exchange Back End)" of type "ADOwaVirtualDirectory" under the root "$null".  
[05.07.2020 09:48:25.0573] [2] Previous operation run on domain controller 'dc01.contoso.de'.  
[05.07.2020 09:48:25.0573] [2] [ERROR] The operation couldn't be performed because object 'EX06\OWA (Exchange Back End)' couldn't be found on 'dc01.contoso.de'.  
[05.07.2020 09:48:25.0589] [2] Ending processing set-OwaVirtualdirectory
[05.07.2020 09:48:25.0589] [1] The following 2 error(s) occurred during task execution:
[05.07.2020 09:48:25.0589] [1] 0.  ErrorRecord: Fehler beim Erstellen des virtuellen IIS-Verzeichnisses 'IIS://ex06.contoso.de/W3SVC/2/ROOT/owa' auf 'EX06'.  
[05.07.2020 09:48:25.0589] [1] 0.  ErrorRecord: System.InvalidOperationException: Fehler beim Erstellen des virtuellen IIS-Verzeichnisses 'IIS://ex06.contoso.de/W3SVC/2/ROOT/owa' auf 'EX06'. ---> Microsoft.Exchange.Management.Metabase.ManageIsapiExtensionCouldNotFindExtensionException: Die ISAPI-Erweiterung owaauth.dll wurde in der Gruppe MSExchangeClientAccess nicht gefunden. Ihr Status kann daher nicht geändert werden. Überprüfen Sie, ob diese ISAPI-Erweiterung (IIS-Webdiensterweiterung) immer noch im Internetinformationsdienste-Manager (IIS) aufgelistet ist. Falls nicht, muss sie möglicherweise erneut hinzugefügt werden.  

Jemand ne Idee was wir hier übersehen?

Edit: Um Rechteprobleme zu vermeiden, führen wir in der Testumgebung die Tests als Admin durch.

Viele Grüße
Auf Facebook teilen
Auf X (Twitter) teilen
Auf Reddit teilen
Auf Linkedin teilen

Content-ID: 570145

Url: https://administrator.de/forum/exchange-unbeaufsichtigte-installation-schlaegt-fehl-570145.html

Ausgedruckt am: 18.07.2025 um 00:07 Uhr

LeeX01
LeeX01 07.05.2020 um 22:26:07 Uhr
Hallo,

also laut Doku ist es Mode:/Upgrade was auch mit deiner Fehlermeldung zusammenpassen dürfte.

docs.microsoft.com/de-de/exchange/plan-and-deploy/install-cumula ...

Grüße
Marta1993
Marta1993 07.05.2020 um 22:31:41 Uhr
Wir updaten keine bestehenden Installationen.
Wir entfernen Server mit altem CU aus der DAG und fügen neue, frische Server mit aktuellem CU hinzu.
Mit Mode:/Upgrade könnte man ja nur eine bestehende Installation updaten.
LeeX01
LeeX01 07.05.2020 um 22:38:27 Uhr
Gibt es frühere Logeinträge?

Die Voraussetzungen sind alle installiert nehme ich an?
Marta1993
Marta1993 07.05.2020 um 22:48:20 Uhr
Na klar:
[05.07.2020 09:48:07.0002] [2] Die Active Directory-Sitzungseinstellungen für 'New-ImapSettings' lauten: Vollständige Gesamtstruktur anzeigen: 'True', Konfigurationsdomänencontroller: 'dc01.contoso.de', Bevorzugter globaler Katalog: 'dc01.contoso.de', Bevorzugte Domänencontroller: '{ dc01.contoso.de }'  
[05.07.2020 09:48:07.0002] [2] User specified parameters:  -DomainController:'dc01.contoso.de' -ExchangePath:'E:\Program,Files\Microsoft\Exchange,Server\V15\'  
[05.07.2020 09:48:07.0002] [2] Beginning processing new-ImapSettings
[05.07.2020 09:48:07.0018] [2] Searching objects "EX06" of type "Server" under the root "$null".  
[05.07.2020 09:48:07.0033] [2] Previous operation run on domain controller 'dc01.contoso.de'.  
[05.07.2020 09:48:07.0033] [2] Processing object "EX06\1".  
[05.07.2020 09:48:07.0049] [2] The properties changed on the object '1' (CN=1,CN=IMAP4,CN=Protocols,CN=EX06,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Contoso,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=contoso,DC=de) are: "{ LogFileLocation[msExchPopImapLogFilePath]='E:\Program,Files\Microsoft\Exchange,Server\V15\Logging\Imap4', LogPerFileSizeQuota[msExchPopImapPerLogFileSizeQuota]='0 B (0 bytes)', UnencryptedOrTLSBindings[msExchServerBindings]={ '0.0.0.0:143', '[::]:143' }, SSLBindings[msExchSecureBindings]={ '0.0.0.0:993', '[::]:993' }, InternalConnectionSettings[msExchPOPIMAPInternalConnectionSettings]={ 'ex06.contoso.de:143:TLS', 'ex06.contoso.de:993:SSL' }, Banner[msExchPopImapBanner]='The Microsoft Exchange IMAP4 service is ready.', ProxyTargetPort[portNumber]='1993', Id[distinguishedName]='EX06\1', RawName[name]='1', OrganizationId[msExchOURoot, msExchCU]='' }".  
[05.07.2020 09:48:07.0049] [2] Saving object "EX06\1" of type "Imap4AdConfiguration" and state "New".  
[05.07.2020 09:48:07.0049] [2] Previous operation run on domain controller 'dc01.contoso.de'.  
[05.07.2020 09:48:07.0049] [2] Reading new object "EX06\1" of type "Imap4AdConfiguration".  
[05.07.2020 09:48:07.0049] [2] Previous operation run on domain controller 'dc01.contoso.de'.  
[05.07.2020 09:48:07.0049] [2] Ending processing new-ImapSettings
[05.07.2020 09:48:07.0049] [1] Executing: 
	new-PopSettings -DomainController $RoleDomainController -ExchangePath $RoleInstallPath


[05.07.2020 09:48:07.0065] [2] Die Active Directory-Sitzungseinstellungen für 'New-PopSettings' lauten: Vollständige Gesamtstruktur anzeigen: 'True', Konfigurationsdomänencontroller: 'dc01.contoso.de', Bevorzugter globaler Katalog: 'dc01.contoso.de', Bevorzugte Domänencontroller: '{ dc01.contoso.de }'  
[05.07.2020 09:48:07.0065] [2] User specified parameters:  -DomainController:'dc01.contoso.de' -ExchangePath:'E:\Program,Files\Microsoft\Exchange,Server\V15\'  
[05.07.2020 09:48:07.0065] [2] Beginning processing new-PopSettings
[05.07.2020 09:48:07.0065] [2] Searching objects "EX06" of type "Server" under the root "$null".  
[05.07.2020 09:48:07.0080] [2] Previous operation run on domain controller 'dc01.contoso.de'.  
[05.07.2020 09:48:07.0080] [2] Processing object "EX06\1".  
[05.07.2020 09:48:07.0096] [2] The properties changed on the object '1' (CN=1,CN=POP3,CN=Protocols,CN=EX06,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Contoso,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=contoso,DC=de) are: "{ LogFileLocation[msExchPopImapLogFilePath]='E:\Program,Files\Microsoft\Exchange,Server\V15\Logging\Pop3', LogPerFileSizeQuota[msExchPopImapPerLogFileSizeQuota]='0 B (0 bytes)', UnencryptedOrTLSBindings[msExchServerBindings]={ '0.0.0.0:110', '[::]:110' }, SSLBindings[msExchSecureBindings]={ '0.0.0.0:995', '[::]:995' }, InternalConnectionSettings[msExchPOPIMAPInternalConnectionSettings]={ 'ex06.contoso.de:110:TLS', 'ex06.contoso.de:995:SSL' }, Banner[msExchPopImapBanner]='The Microsoft Exchange POP3 service is ready.', ProxyTargetPort[portNumber]='1995', Id[distinguishedName]='EX06\1', RawName[name]='1', OrganizationId[msExchOURoot, msExchCU]='' }".  
[05.07.2020 09:48:07.0096] [2] Saving object "EX06\1" of type "Pop3AdConfiguration" and state "New".  
[05.07.2020 09:48:07.0096] [2] Previous operation run on domain controller 'dc01.contoso.de'.  
[05.07.2020 09:48:07.0096] [2] Reading new object "EX06\1" of type "Pop3AdConfiguration".  
[05.07.2020 09:48:07.0096] [2] Previous operation run on domain controller 'dc01.contoso.de'.  
[05.07.2020 09:48:07.0096] [2] Ending processing new-PopSettings
[05.07.2020 09:48:07.0096] [1] Processing component 'ClientAccessExchangeCertificate' (Die Zertifikate für den Clientzugriffsserver werden installiert.).  
[05.07.2020 09:48:07.0096] [1] Executing: 
          Install-ExchangeCertificate -WebSiteName "Exchange Back End" -services "IIS, POP, IMAP" -DomainController $RoleDomainController -InstallInTrustedRootCAIfSelfSigned $true  
          if ($RoleIsDatacenter -ne $true -And $RoleIsPartnerHosted -ne $true)
          {
            Install-AuthCertificate -DomainController $RoleDomainController
          }
        
[05.07.2020 09:48:07.0096] [2] Die Active Directory-Sitzungseinstellungen für 'Install-ExchangeCertificate' lauten: Vollständige Gesamtstruktur anzeigen: 'True', Konfigurationsdomänencontroller: 'dc01.contoso.de', Bevorzugter globaler Katalog: 'dc01.contoso.de', Bevorzugte Domänencontroller: '{ dc01.contoso.de }'  
[05.07.2020 09:48:07.0112] [2] User specified parameters:  -WebSiteName:'Exchange Back End' -Services:'IMAP, POP, IIS' -DomainController:'dc01.contoso.de' -InstallInTrustedRootCAIfSelfSigned:'True'  
[05.07.2020 09:48:07.0112] [2] Beginning processing Install-ExchangeCertificate
[05.07.2020 09:48:07.0268] [2] Installing certificate signed by 'CN=ex06' for site 'CN=ex06'.  Certificate is valid from 5/7/2020 11:44:28 AM until 5/7/2025 11:44:28 AM.  
[05.07.2020 09:48:07.0941] [2] Ending processing Install-ExchangeCertificate
[05.07.2020 09:48:07.0941] [2] Die Active Directory-Sitzungseinstellungen für 'Install-AuthCertificate' lauten: Vollständige Gesamtstruktur anzeigen: 'True', Konfigurationsdomänencontroller: 'dc01.contoso.de', Bevorzugter globaler Katalog: 'dc01.contoso.de', Bevorzugte Domänencontroller: '{ dc01.contoso.de }'  
[05.07.2020 09:48:07.0941] [2] User specified parameters:  -DomainController:'dc01.contoso.de'  
[05.07.2020 09:48:07.0941] [2] Beginning processing Install-AuthCertificate
[05.07.2020 09:48:07.0941] [2] Ending processing Install-AuthCertificate
[05.07.2020 09:48:07.0941] [1] Processing component 'OWA Configuration' (Die Outlook Web App-Komponente wird installiert/entfernt.).  
[05.07.2020 09:48:07.0941] [1] Executing: 
	new-HttpContainer -DomainController $RoleDomainController


[05.07.2020 09:48:07.0956] [2] Die Active Directory-Sitzungseinstellungen für 'New-HttpContainer' lauten: Vollständige Gesamtstruktur anzeigen: 'True', Konfigurationsdomänencontroller: 'dc01.contoso.de', Bevorzugter globaler Katalog: 'dc01.contoso.de', Bevorzugte Domänencontroller: '{ dc01.contoso.de }'  
[05.07.2020 09:48:07.0956] [2] User specified parameters:  -DomainController:'dc01.contoso.de'  
[05.07.2020 09:48:07.0956] [2] Beginning processing new-HttpContainer
[05.07.2020 09:48:07.0956] [2] Processing object "HTTP".  
[05.07.2020 09:48:07.0956] [2] The properties changed on the object 'HTTP' (CN=HTTP,CN=Protocols,CN=EX06,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Contoso,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=contoso,DC=de) are: "{ Id[distinguishedName]='HTTP', RawName[name]='HTTP', Name[name]='HTTP', OrganizationId[msExchOURoot, msExchCU]='' }".  
[05.07.2020 09:48:07.0956] [2] Saving object "HTTP" of type "HttpContainer" and state "New".  
[05.07.2020 09:48:07.0956] [2] Previous operation run on domain controller 'dc01.contoso.de'.  
[05.07.2020 09:48:07.0956] [2] Ending processing new-HttpContainer
[05.07.2020 09:48:07.0956] [1] Executing: 
	set-InstallPathInAppConfig -ConfigFileRelativePath "ClientAccess\owa\" -ConfigFileName web.config  


[05.07.2020 09:48:07.0972] [2] Die Active Directory-Sitzungseinstellungen für 'Set-InstallPathInAppConfig' lauten: Vollständige Gesamtstruktur anzeigen: 'True', Konfigurationsdomänencontroller: 'dc01.contoso.de', Bevorzugter globaler Katalog: 'dc01.contoso.de', Bevorzugte Domänencontroller: '{ dc01.contoso.de }'  
[05.07.2020 09:48:07.0972] [2] User specified parameters:  -ConfigFileRelativePath:'ClientAccess\owa\' -ConfigFileName:'web.config'  
[05.07.2020 09:48:07.0972] [2] Beginning processing set-InstallPathInAppConfig
[05.07.2020 09:48:07.0988] [2] Ending processing set-InstallPathInAppConfig
[05.07.2020 09:48:07.0988] [1] Executing: 
	set-InstallPathInAppConfig -ConfigFileRelativePath "ClientAccess\Autodiscover\" -ConfigFileName web.config  


[05.07.2020 09:48:07.0988] [2] Die Active Directory-Sitzungseinstellungen für 'Set-InstallPathInAppConfig' lauten: Vollständige Gesamtstruktur anzeigen: 'True', Konfigurationsdomänencontroller: 'dc01.contoso.de', Bevorzugter globaler Katalog: 'dc01.contoso.de', Bevorzugte Domänencontroller: '{ dc01.contoso.de }'  
[05.07.2020 09:48:07.0988] [2] User specified parameters:  -ConfigFileRelativePath:'ClientAccess\Autodiscover\' -ConfigFileName:'web.config'  
[05.07.2020 09:48:07.0988] [2] Beginning processing set-InstallPathInAppConfig
[05.07.2020 09:48:08.0003] [2] Ending processing set-InstallPathInAppConfig
[05.07.2020 09:48:08.0003] [1] Executing: 
          $windowsAuthenticationEnabled = $true
          [Reflection.Assembly]::LoadWithPartialName('Microsoft.Exchange.Clients.Owa2.ServerVariantConfiguration');  
          try
          {
             $snapshot = [Microsoft.Exchange.VariantConfiguration.OwaServer.OwaServerConfiguration]::GetSnapshot([Microsoft.Exchange.VariantConfiguration.MachineSettingsContext]::Local)
             if (($snapshot -ne $null) -and ($snapshot.WindowsAuthenticationDisabled -ne $null) -and $snapshot.WindowsAuthenticationDisabled.Enabled)
             {
                Write-ExchangeSetupLog -info "WindowsAuthenticationDisabled is true, disabling windows authentication on vdir..."  
                $windowsAuthenticationEnabled = $false
             }
             else
             {
                Write-ExchangeSetupLog -info "WindowsAuthenticationDisabled is false, enabling windows authentication on vdir..."  
             }
          }
          catch
          {
             Write-ExchangeSetupLog -info $_
          }
          $BEVdirIdentity = $RoleNetBIOSName + "\OWA (Exchange Back End)";  
          new-OwaVirtualDirectory -Role Mailbox -WebSiteName "Exchange Back End" -DomainController $RoleDomainController;  
          set-OwaVirtualdirectory -Identity $BEVdirIdentity -FormsAuthentication:$false -WindowsAuthentication:$windowsAuthenticationEnabled;
Reicht das?

Die Voraussetzungen wie .Net, UCMA, VC Redist sind installiert. Das OS ist auf dem aktuellsten Stand.
Die Windows Features haben wir, in einem früheren Testlauf, auch manuell installiert.
LeeX01
Lösung LeeX01 07.05.2020 um 23:08:45 Uhr
Versuch mal
 "/TargetDir:““E:\Program Files\Microsoft\Exchange Server\V15\"““  

Ihr habt die Leerzeichen nicht escaped. Der Fehler ist zum Beispiel in Zeile 19 sichtbar bei Program Files
-ExchangePath:'E:\Program,Files\Microsoft\Exchange,Server\V15\'

Ersetz bitte alle Anführungszeichen nochmal in der Kommandozeile damit es keine Probleme gibt
Marta1993
Marta1993 07.05.2020 um 23:27:31 Uhr
Das ist uns nicht aufgefallen.
Danke. Ich habe die Installation grade mal gestartet.

Ich berichte in spätestens 30 Minuten face-smile
Marta1993
Marta1993 08.05.2020 um 09:06:26 Uhr
Gestern wollte es dann doch nicht mehr.

Mit:
"/TargetDir:""E:\Program` Files\Microsoft\Exchange` Server\V15"""  
Klappt es nun. Danke face-smile