Link to home
Create AccountLog in
Avatar of Alan Duck
Alan DuckFlag for United Kingdom of Great Britain and Northern Ireland

asked on

exchange 2016 failed to install now it wont uninstall or repair

Hi have a 2016 exchange installed that failed while installing Lanauge packs now i cant uninstall or repair has it throws up an error

1] 0.  ErrorRecord: Service 'Application Identity (AppIDSvc)' cannot be configured due to the following error: Access is denied
[05/04/2020 15:43:00.0578] [1] 0.  ErrorRecord: Microsoft.PowerShell.Commands.ServiceCommandException: Service 'Application Identity (AppIDSvc)' cannot be configured due to the following error: Access is denied ---> System.ComponentModel.Win32Exception: Access is denied
   --- End of inner exception stack trace ---
[05/04/2020 15:43:00.0588] [1] The following error was generated when "$error.Clear();
          $roleList = $RoleRoles.Replace('Role','').Split(',');

          if($roleList -contains 'LanguagePacks')
          {
            & $RoleBinPath\ServiceControl.ps1 Save
            & $RoleBinPath\ServiceControl.ps1 DisableServices $roleList;
            & $RoleBinPath\ServiceControl.ps1 Stop $roleList;
             
          };
        " was run: "Microsoft.PowerShell.Commands.ServiceCommandException: Service 'Application Identity (AppIDSvc)' cannot be configured due to the following error: Access is denied ---> System.ComponentModel.Win32Exception: Access is denied
   --- End of inner exception stack trace ---".
[05/04/2020 15:43:00.0588] [1] Service 'Application Identity (AppIDSvc)' cannot be configured due to the following error: Access is denied
[05/04/2020 15:43:00.0588] [1] Access is denied
[05/04/2020 15:43:00.0606] [1] [ERROR-REFERENCE] Id=AllRolesPreFileCopyComponent___2f7e3804a2b340c69e930798211fb8fd Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup
[05/04/2020 15:43:00.0607] [1] Setup is stopping now because of one or more critical errors.
Avatar of FOX
FOX
Flag of United States of America image

It seems as though you are running the command via powershell.  Did you open powershell "Run as Administrator"?

Avatar of Alan Duck

ASKER

that was the error part of the exchage setup log
Please remove the watermark entry from registry try uninstalling/Installing.
open regedit
go to HKLM\Software\Microsoft\ExchangeServer\15\
Delete the watermarks
https://practical365.com/exchange-server/exchange-server-error-an-incomplete-installation-was-detected/
I read the article and found the watermarks in the registry and deleted and re-run the setup
but still got the same error that appears on the screen.

[05/05/2020 17:01:32.0325] [1] [ERROR] The following error was generated when "$error.Clear();
          $roleList = $RoleRoles.Replace('Role','').Split(',');

          if($roleList -contains 'LanguagePacks')
          {
            & $RoleBinPath\ServiceControl.ps1 Save
            & $RoleBinPath\ServiceControl.ps1 DisableServices $roleList;
            & $RoleBinPath\ServiceControl.ps1 Stop $roleList;
             
          };
        " was run: "Microsoft.PowerShell.Commands.ServiceCommandException: Service 'Application Identity (AppIDSvc)' cannot be configured due to the following error: Access is denied ---> System.ComponentModel.Win32Exception: Access is denied
   --- End of inner exception stack trace ---".
Seems like you are not in an elevated command prompt. Please try the same from an elavated cmd.
https://www.howtogeek.com/194041/how-to-open-the-command-prompt-as-administrator-in-windows-8.1/
we are working with Microsoft tech on this question and after begin connected to the server in question for a good few hours they concluded the original exchange software failed to install correctly and the only course of action is to wipe the server and reinstall so that is what we intend to do this week.
pppppbbbbbhhhhhttttt

you can do what you want.

but removing the high-water mark is the worst that you should ever need to do. as @mas suggested/said.
ASKER CERTIFIED SOLUTION
Avatar of Alan Duck
Alan Duck
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer