I am getting this error after on-prem Exchange 2019 crashed and needs to be rebuilt. I have tried to uninstall and install again to no avail. Can you help?
Microsoft Exchange Server 2019 Cumulative Update 13 Unattended Setup
Copying Files...
File copy complete. Setup will now collect additional information needed for installation.
Languages
Management tools
Mailbox role: Transport service
Mailbox role: Client Access service
Mailbox role: Mailbox service
Mailbox role: Front End Transport service
Mailbox role: Client Access Front End service
Performing Microsoft Exchange Server Prerequisite Check
Configuring Prerequisites COMPLETED
Prerequisite Analysis COMPLETED
Configuring Microsoft Exchange Server
Preparing Setup COMPLETED
Stopping Services COMPLETED
Copying Exchange Files COMPLETED
Language Files COMPLETED
Restoring Services COMPLETED
Language Configuration COMPLETED
Exchange Management Tools COMPLETED
Mailbox role: Transport service FAILED
The following error was generated when "$error.Clear();
$feVdirName = "PowerShell (Default Web Site)";
$beVdirName =
"PowerShell (Exchange Back End)";
$vdirName = "PowerShell";
$InternalPowerShellUrl="http://" + $RoleFqdnOrName +
"/powershell";
$vdir = get-PowerShellVirtualDirectory -ShowMailboxVirtualDirectories -server $RoleFqdnOrName
-DomainController $RoleDomainController | where { $_.Name -eq $beVdirName };
if ($vdir -eq $null)
{
new-PowerShellVirtualDirectory $vdirName -Role Mailbox -DomainController $RoleDomainController
-BasicAuthentication:$false -WindowsAuthentication:$true -RequireSSL:$true -WebSiteName "Exchange Back End" -Path
($RoleInstallPath + "ClientAccess\PowerShell-Proxy");
}
else
{
update-PowerShellVirtualDirectoryVersion
-DomainController $RoleDomainController;
}
$vdir2 = get-PowerShellVirtualDirectory -ShowMailboxVirtualDirectories
-server $RoleFqdnOrName -DomainController $RoleDomainController | where { $_.Name -eq $feVdirName };
if ($vdir2 -eq
$null)
{
new-PowerShellVirtualDirectory $vdirName -Role Mailbox -InternalUrl $InternalPowerShellUrl -DomainController
$RoleDomainController -BasicAuthentication:$false -WindowsAuthentication:$false -RequireSSL:$false -WebSiteName
"Default Web Site" -AppPoolId "MSExchangePowerShellFrontEndAppPool";
}
else
{
update-PowerShellVirtualDirectoryVersion -DomainController $RoleDomainController;
}
" was run:
"System.ArgumentException: The virtual directory 'PowerShell' already exists under 'ex201901.wachtell.local/Default Web
Site'.
Parameter name: VirtualDirectoryName
at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception
exception, ErrorCategory errorCategory, Object target, String helpUrl)
at
Microsoft.Exchange.Management.SystemConfigurationTasks.NewExchangeVirtualDirectory`1.InternalValidate()
at
Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
at
Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean
terminatePipelineIfFailed)".
The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the
<SystemDrive>:\ExchangeSetupLogs folder.