Hello Team,
Currently testing Ex2016 on Windows Server 2016. Found an issue when uninstalling Exchange. Looks like at some point we get an Access Denied error when unregistering one or more DLLs. Uninstallation is done remotely using DSC and running with proper credentials. Issue doesn't occur when using Windows Server 2012 R2.
Also tried uninstalling from an interactive session, same issue. Of course, I have proper privileges on the server.
[09/28/2016 13:43:32.0145] [2] Active Directory session settings for 'Start-SetupProcess' are: View Entire Forest: 'True', Configuration Domain Controller: 'sv-dc01.corp.uc-lab.org', Preferred Global Catalog: 'sv-dc01.corp.uc-lab.org', Preferred Domain Controllers: '{ sv-dc01.corp.uc-lab.org }'
[09/28/2016 13:43:32.0145] [2] User specified parameters: -Name:'C:\Windows\system32\regsvr32.exe' -Args:'/s /u "C:\Exchange\bin\ExSMIME.dll"' -Timeout:'120000'
[09/28/2016 13:43:32.0145] [2] Beginning processing start-SetupProcess
[09/28/2016 13:43:32.0146] [2] Starting: C:\Windows\system32\regsvr32.exe with arguments: /s /u "C:\Exchange\bin\ExSMIME.dll"
[09/28/2016 13:43:32.0492] [2] Process standard output:
[09/28/2016 13:43:32.0492] [2] Process standard error:
[09/28/2016 13:43:32.0492] [2] [ERROR] Process execution failed with exit code 5.
[09/28/2016 13:43:32.0493] [2] [ERROR] Process execution failed with exit code 5.
[09/28/2016 13:43:32.0494] [2] Ending processing start-SetupProcess
[09/28/2016 13:43:32.0495] [1] The following 1 error(s) occurred during task execution:
[09/28/2016 13:43:32.0495] [1] 0. ErrorRecord: Process execution failed with exit code 5.
[09/28/2016 13:43:32.0495] [1] 0. ErrorRecord: Microsoft.Exchange.Configuration.Tasks.TaskException: Process execution failed with exit code 5.
at Microsoft.Exchange.Management.Tasks.RunProcessBase.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.b__b()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)
[09/28/2016 13:43:32.0509] [1] [ERROR] The following error was generated when "$error.Clear();
$dllFile = join-path $RoleInstallPath "bin\ExSMIME.dll";
$regsvr = join-path (join-path $env:SystemRoot system32) regsvr32.exe;
start-SetupProcess -Name:"$regsvr" -Args:"/s /u `"$dllFile`"" -Timeout:120000;
" was run: "Microsoft.Exchange.Configuration.Tasks.TaskException: Process execution failed with exit code 5.
at Microsoft.Exchange.Management.Tasks.RunProcessBase.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.b__b()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".
[09/28/2016 13:43:32.0509] [1] [ERROR] Process execution failed with exit code 5.