Exchange CU failed – SharedWebConfig Access Denied

Exchange CU failed – SharedWebConfig Access Denied

[03.03.2021 20:51:55.0663] [1] [ERROR] The following error was generated when "$error.Clear(); 
          $dependentAssemblyGeneratorExePath = [System.IO.Path]::Combine($RoleInstallPath, "bin", "DependentAssemblyGenerator.exe");
          $exchangeBinPath  = [System.IO.Path]::Combine($RoleInstallPath, "bin");
          $clientAccessPath = [System.IO.Path]::Combine($RoleInstallPath, "ClientAccess");
          $sharedWebConfig  = [System.IO.Path]::Combine($RoleInstallPath, "ClientAccess", "SharedWebConfig.config");

          $a = &"$dependentAssemblyGeneratorExePath" -exchangePath "$exchangeBinPath" -exchangePath "$clientAccessPath" -configFile "$sharedWebConfig";
          $allOutput = @();
          $a | % { $allOutput += $_ };
          Write-ExchangeSetupLog -Info ($allOutput -join "`r`n");
          Stop-SetupService -ServiceName WAS;
          Start-SetupService -ServiceName W3SVC;
        " was run: "System.Management.Automation.RemoteException".
[03.03.2021 20:51:55.0663] [1] [ERROR] 
[03.03.2021 20:51:55.0664] [1] 1.  ErrorRecord: Unbehandelte Ausnahme: System.UnauthorizedAccessException: Der Zugriff auf den Pfad "C:Program FilesMicrosoftExchange ServerV15ClientAccessSharedWebConfig.config" wurde verweigert.
[03.03.2021 20:51:55.0664] [1] 1.  ErrorRecord: System.Management.Automation.RemoteException: Unbehandelte Ausnahme: System.UnauthorizedAccessException: Der Zugriff auf den Pfad "C:Program FilesMicrosoftExchange ServerV15ClientAccessSharedWebConfig.config" wurde verweigert.

You may also like...