Hi,
I'm trying to uninstall a Exchange 2010 Mailbox Server but when uninstalling the mailbox role I get below errors:
[09/21/2015 14:29:36.0135] [1] Processing component 'All Roles Common Last' (Creating the Exchange server configuration object in Active Directory.).
[09/21/2015 14:29:36.0135] [1] Executing:
if ($RoleRoles)
{
& $RoleBinPath\ServiceControl.ps1 EnableServices $RoleRoles.Replace('Role','').Split(',')
}
[09/21/2015 14:29:36.0198] [2] [ServiceControl.ps1] -----------------------------------------------
[09/21/2015 14:29:36.0198] [2] [ServiceControl.ps1] * ServiceControl.ps1: 9/21/2015 8:29:36 AM
[09/21/2015 14:29:36.0198] [2] [ServiceControl.ps1] Performing service control with options:
[09/21/2015 14:29:36.0198] [2] [ServiceControl.ps1] AdminTools is a known role
[09/21/2015 14:29:36.0198] [2] [ServiceControl.ps1] Will enable services for the roles: AdminTools.
[09/21/2015 14:29:36.0198] [2] [ServiceControl.ps1] Enabling services for 'AdminTools'...
[09/21/2015 14:29:36.0213] [2] [ServiceControl.ps1] Reading service registry data from 'C:\ExchangeSetupLogs\ServiceStartupMode14.03.0224.002.xml'
[09/21/2015 14:29:36.0338] [2] [ServiceControl.ps1] Loaded state for services registry
[09/21/2015 14:29:36.0416] [2] [ServiceControl.ps1] Enabling service 'HealthService'.
[09/21/2015 14:29:36.0432] [2] [WARNING] 'HealthService' did not exist, this is not an error as the sevice might have just been installed
[09/21/2015 14:29:36.0432] [2] [ServiceControl.ps1] Enabling service 'RemoteRegistry'.
[09/21/2015 14:29:36.0447] [2] [WARNING] 'RemoteRegistry' did not exist, this is not an error as the sevice might have just been installed
[09/21/2015 14:29:36.0447] [2] [ServiceControl.ps1] Enabling service 'WinMgmt'.
[09/21/2015 14:29:36.0447] [2] [WARNING] 'WinMgmt' did not exist, this is not an error as the sevice might have just been installed
[09/21/2015 14:29:36.0447] [2] [ServiceControl.ps1] Script completed succesfully.
[09/21/2015 14:29:36.0463] [1] The following 3 error(s) occurred during task execution:
[09/21/2015 14:29:36.0479] [1] 0. ErrorRecord: Cannot index into a null array.
[09/21/2015 14:29:36.0479] [1] 0. ErrorRecord: System.Management.Automation.RuntimeException: Cannot index into a null array.
at System.Management.Automation.ArrayReferenceNode.GetValue(Object target, Object index, ExecutionContext context)
at System.Management.Automation.ArrayReferenceNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
at System.Management.Automation.ExpressionNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
at System.Management.Automation.ParseTreeNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
[09/21/2015 14:29:36.0494] [1] [ERROR] The following error was generated when "$error.Clear();
if ($RoleRoles)
{
& $RoleBinPath\ServiceControl.ps1 EnableServices $RoleRoles.Replace('Role','').Split(',')
}
" was run: "Cannot index into a null array.".
[09/21/2015 14:29:36.0494] [1] [ERROR] Cannot index into a null array.
[09/21/2015 14:29:36.0494] [1] 1. ErrorRecord: Cannot index into a null array.
[09/21/2015 14:29:36.0494] [1] 1. ErrorRecord: System.Management.Automation.RuntimeException: Cannot index into a null array.
at System.Management.Automation.ArrayReferenceNode.GetValue(Object target, Object index, ExecutionContext context)
at System.Management.Automation.ArrayReferenceNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
at System.Management.Automation.ExpressionNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
at System.Management.Automation.ParseTreeNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
[09/21/2015 14:29:36.0494] [1] [ERROR] The following error was generated when "$error.Clear();
if ($RoleRoles)
{
& $RoleBinPath\ServiceControl.ps1 EnableServices $RoleRoles.Replace('Role','').Split(',')
}
" was run: "Cannot index into a null array.".
[09/21/2015 14:29:36.0494] [1] [ERROR] Cannot index into a null array.
[09/21/2015 14:29:36.0494] [1] 2. ErrorRecord: Cannot index into a null array.
[09/21/2015 14:29:36.0494] [1] 2. ErrorRecord: System.Management.Automation.RuntimeException: Cannot index into a null array.
at System.Management.Automation.ArrayReferenceNode.GetValue(Object target, Object index, ExecutionContext context)
at System.Management.Automation.ArrayReferenceNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
at System.Management.Automation.ExpressionNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
at System.Management.Automation.ParseTreeNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
[09/21/2015 14:29:36.0494] [1] [ERROR] The following error was generated when "$error.Clear();
if ($RoleRoles)
{
& $RoleBinPath\ServiceControl.ps1 EnableServices $RoleRoles.Replace('Role','').Split(',')
}
" was run: "Cannot index into a null array.".
[09/21/2015 14:29:36.0494] [1] [ERROR] Cannot index into a null array.
[09/21/2015 14:29:36.0494] [1] [ERROR-REFERENCE] Id=AllRolesCommonLast___6f2b6624392e4f678c9b5a386a4916ae Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup
[09/21/2015 14:29:36.0494] [1] Setup is stopping now because of one or more critical errors.
[09/21/2015 14:29:36.0494] [1] Finished executing component tasks.
[09/21/2015 14:29:36.0557] [1] Ending processing Uninstall-MailboxRole