Microsoft Knowledge Base Email Alertz

Exchange Service Pack upgrade fails with an Unexpected Error in ServiceControl.ps1

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Exchange Service Pack upgrade fails with an Unexpected Error in ServiceControl.ps1

Article ID: 2034420 - View products that this article applies to.

Symptoms

When you attempt to upgrade Exchange Server 2007 using setup.com /m:upgrade, the process mail fail during the Preparing Setup phase.

 

Performing Microsoft Exchange Server Prerequisite Check

 

    Edge Transport Role Checks       ......................... COMPLETED

 

Configuring Microsoft Exchange Server

 

    Preparing Setup                  ......................... FAILED

An unexpected error has occurred and debug information is being generated: Unex

pected error [0xCF6CDA0B] while executing command '$error.Clear(); $RoleNames =

$RoleRoles.Replace('Role','').Split(','); if( test-path "$env:TMP\StoppedService

s.xml" ) { .\ServiceControl.ps1 Stop $RoleNames; } else { .\ServiceControl.ps1 S

ave; .\ServiceControl.ps1 Stop $RoleNames; .\ServiceControl.ps1 DisableServices

$RoleNames; }'.

     Unexpected error [0xCF6CDA0B] while executing command '$error.Clear(); $Rol

eNames = $RoleRoles.Replace('Role','').Split(','); if( test-path "$env:TMP\Stopp

edServices.xml" ) { .\ServiceControl.ps1 Stop $RoleNames; } else { .\ServiceCont

rol.ps1 Save; .\ServiceControl.ps1 Stop $RoleNames; .\ServiceControl.ps1 Disable

Services $RoleNames; }'.

 

Exchange Server setup encountered an error.


 Note: The hexidecimal code in this error may vary.

Cause

A Pre-Setup task was trying to execute ServiceControl.PS1 to stop all exchange services for the Exchange upgrade process. However, the ServiceControl.ps1 script has been flagged as `Do Not Run`.

Resolution

1. Open the Exchange Management Shell and change directory to <Service Pack installation path>:\Setup\ServerRoles\common\
2. Run .\ServiceControl.ps1
3. You will see the default setting is "[D] Do not run". Enter option [A] for "Always run".
4. Close the Exchange Management Shell.
5. From a command prompt, run setup.com /m:upgrade again.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2034420 - Last Review: November 12, 2010 - Revision: 3.0
APPLIES TO
  • Microsoft Exchange Server 2007 Service Pack 1
  • Microsoft Exchange Server 2007 Service Pack 2
  • Microsoft Exchange Server 2007 Service Pack 3
Keywords: 
KB2034420
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate