You are currently offline, waiting for your internet to reconnect

Task sequence fails in Configuration Manager if software updates require multiple restarts

Notice
The issue is fixed in Cumulative Update 3 for System Center 2012 Configuration Manager Service Pack 2, System Center 2012 R2 Configuration Manager Service Pack 1 and in System Center Configuration Manager build 1602 (current branch).

A new optional task sequence variable, SMSTSWaitForSecondReboot, is available to better control client behavior when a software update installation requires two restarts. For more information, see the "Software updates management / operating system deployment" section in the following Knowledge Base article:
3135680 Description of Cumulative Update 3 for System Center 2012 Configuration Manager SP2 and System Center 2012 R2 Configuration Manager SP1


Symptoms
Assume that a Microsoft System Center Configuration Manager task sequence that uses the "Install Software Updates" step installs a software update that triggers multiple restarts after the task sequence successfully runs the Install Software Updates task. In this situation, the task sequence can fail and generate the following error message:

Task Sequence environment not found

Note You can avoid this issue in System Center 2012 Configuration Manager Service Pack 2 and System Center 2012 R2 Configuration Manager Service Pack 1 by using the new Retry option in the Install Updates task sequence step. For more information, refer to the Install Software Updates documentation on the Microsoft TechNet website.
Cause
The first restart that is initiated by the software update is controlled by the task sequence. However, the second restart request is initiated by a Windows component (typically, Component-Based Servicing) and is not controlled by the task sequence. Therefore, the task sequence execution state is not saved before the restart because the second restart is not controlled by the task sequence. When the task sequence resumes after the second restart, no state is available to continue successfully.
Resolution
To resolve this issue, we recommend that you apply any updates that require dual restarts by using the usual Software Updates feature of Configuration Manager instead of using task sequences. The following software updates were reported to require multiple restarts.

Note This article will continue to be updated through May 2016. Then, the Configuration Manager Service Pack levels that are referenced in the "Applies to" section fall out of mainstream support. For more information, see the Microsoft Support Lifecycle policy.

3126446 MS16-017: Description of the security update for Remote Desktop display driver: February 9, 2016

3096053 September 2015 servicing stack update for Windows 8 and Windows Server 2012

3075222 MS15-082: Description of the security update for RDP in Windows: August 11, 2015

3067904 MS15-082: Description of the security update for Windows RDP: July 14, 2015

3069762 MS15-067: Description of the security update for Windows RDP: July 14, 2015

3003729 April 2015 servicing stack update for Windows 8 and Windows Server 2012

3035017 MS15-030: Description of the security update for Remote Desktop protocol: March 10, 2015

3039976 MS15-030: Vulnerability in Remote Desktop protocol could allow denial of service: March 10, 2015

3036493 MS15-030: Description of the security update for Remote Desktop protocol: March 10, 2015

3003743 MS14-074: Vulnerability in Remote Desktop Protocol could allow security feature bypass: November 11, 2014

2984976 RDP 8.0 update for restricted administration on Windows 7 or Windows Server 2008 R2

2981685 Security updates cannot be installed if BitLocker is not installed on your computer

2966034 Description of the security update for Remote Desktop Security Release for Windows 8.1 systems that do not have the 2919355 update installed: June 10, 2014

2965788 MS14-030: Description of the security update for Remote Desktop Security Release for Windows: June 10, 2014

2920189 Description of the update rollup of revoked noncompliant UEFI modules: May 13, 2014

2862330 MS13-081: Description of the security update for USB drivers: October 8, 2013

2871777 A servicing stack update is available for Windows RT, Windows 8, and Windows Server 2012: September 2013

2871690 Microsoft security advisory: Update to revoke noncompliant UEFI boot loader modules

2821895 A servicing stack update is available for Windows RT and Windows 8: June 2013

2771431 A servicing stack update is available for Windows 8 and Windows Server 2012

2545698 Text in some core fonts appears blurred in Internet Explorer 9 on a computer that is running Windows Vista, Windows Server 2008, Windows 7, or Windows Server 2008 R2

2529073 Binary files in some USB drivers are not updated after you install Windows 7 SP1 or Windows Server 2008 R2 SP1
More information
Because this second restart is not controlled by the task sequence, no execution state is saved before the restart. When the task sequence resumes after the restart, no state is available to continue successfully. Additionally, the following message may be logged to the Smsts.log file when you experience this issue:

!sVolumeID.empty(), HRESULT=80004005
!sTSMDataPath.empty(), HRESULT=80070002
TS::Utility::GetTSMDataPath( sDataDir ), HRESULT=80070002
Failed to set log directory. Some execution history may be lost.
The system cannot find the file specified. (Error: 80070002; Source: Windows)
Executing task sequence
!sVolumeID.empty(), HRESULT=80004005
!sTSMDataPath.empty(), HRESULT=80070002
Task Sequence environment not found

Also, clients that are running release versions that are earlier than Microsoft System Center 2012 Configuration Manager Service Pack 1 may contain the following log entry:

Task sequence completed in Windows PE.

Note The client computer may also be stuck in provisioning mode after the task sequence fails. To determine whether the computer is in provisioning mode, check the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CCM\CcmExec


ProvisioningMode should be set to false. If it is set to true, use one of the following methods to take the client out of provisioning mode:
  • Use the Windows Management Instrumentation (WMI) method SetClientProvisioningMode to take the client out of provisioning mode correctly. The easiest way to do this is to run the following Windows PowerShell command:
    Invoke-WmiMethod -Namespace root\CCM -Class SMS_Client -Name SetClientProvisioningMode -ArgumentList $false
    Or, run the following command at an elevated command prompt:

    powershell Invoke-WmiMethod -Namespace root\CCM -Class SMS_Client -Name SetClientProvisioningMode -ArgumentList $false
  • Reinstall the client.
Important Do not try to fix the client by changing the value of ProvisioningMode to false. This action will not fully take the client out of provisioning mode.
ConfigMgr 2012 SP2 ConfigMgr 2012 R2 SP1 ConfigMgr 1602
Properties

Article ID: 2894518 - Last Review: 03/29/2016 20:19:00 - Revision: 25.1

Windows Server 2012 R2 Standard, Windows Server 2012 Standard, Windows Server 2008 R2 Standard, Windows Server 2008 Standard, Windows 8.1, Windows 8, Windows 7 Enterprise, Windows 7 Professional, Windows Vista Business, Windows Vista Business 64-bit Edition, Windows Vista Enterprise, Windows Vista Enterprise 64-bit Edition, Microsoft System Center 2012 Configuration Manager, Microsoft System Center 2012 Configuration Manager Service Pack 1, Microsoft System Center 2012 R2 Configuration Manager, Microsoft System Center Configuration Manager 2007 R2, Microsoft System Center Configuration Manager 2007, System Center Configuration Manager, v1602 released March 2016

  • KB2894518
Feedback