Rerun a OS upgrade task Sequence after a user restart the machine ...

Izanagi76 215 Reputation points
2025-01-10T13:27:46.7666667+00:00

Hi,

I created an SCCM task sequence to perform an in-place upgrade from Windows 10 to Windows 11. I deployed this task sequence to a test machine collection. On one of the test machines, the deployment appears correctly in the "Operating System" section. I then start the task sequence, and the installation begins successfully.

This task sequence is intended to be used later on approximately 2,000 machines. The goal is to anticipate potential deployment issues and observe specific scenarios, such as what happens if a user restarts the machine during the execution of the task sequence. To test this, I restarted my test machine during the installation.

After the restart, the task sequence no longer appears in the "Operating System" section, even after triggering all the available Configuration Manager actions. However, the machine is still part of the collection. I tried to clear SCCM cache, remove Task sequence folder on C drive root, but nothing reappear in the "Operating System" section ... I even tried to duplicate the existing task sequence and deployed it to a collection with the same machine, but nothing appear.

How can I make the deployment reappear in the "Operating System" section?
Thanks for your help,

Best regards,

Izanagi

Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. Simon Ren-MSFT 38,406 Reputation points Microsoft Vendor
    2025-01-14T02:28:00.49+00:00

    Hi,

    Thanks very much for your feedback and sharing. We're glad that the issue is gone now. It's appreciated that you could click "Accept Answer" to the helpful reply, this will help other users to search for useful information more quickly. Here's a short summary of the problem.

    Problem/Symptom:

    The in-place upgrade task sequence no longer appears in the "Operating System" section after restarting the test machine during the OS installation.

    Reason:

    After a user restart the machines during the OS in place upgrade, the SCCM client switches to "provisioning mode".

    Solution/Workaround:

    Use below PowerShell cmd TO set the ProvisioningMode value to be "False":

    Invoke-WmiMethod -Namespace root\CCM -Class SMS_Client -Name SetClientProvisioningMode -ArgumentList $false

    provisioningMode

    Thanks again for your time. Have a nice day!

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Izanagi76 215 Reputation points
    2025-01-13T17:05:23.93+00:00

    Hi Simon,

    My task sequence is available on the software center so your recommandations about clearing PXE informations cannot be applied.

    Fortunately, I found a solution. After a user restart the machines during the OS in place upgrade, the sccm client swithes to "provisioning mode". It can be seen in the registry here :

    Texte de remplacement généré par une machine :Ordinateur\HKEY LOCAL ASP.NET Ass istance AuthHast 8idIntefface 8itLockerCsp CallAndMessagingEnhancement CCM AADConfigs 8gbAgent BLM CcmConditions CcmEvaI Cc m Ex ec CertEnraIIAgent CIAqent A Nom (par défaut) ADTmeOutSeconds Checkl dleEndpointSeconds CheckMem00'Secands CheckUserSeconds CaFreeSecands FileCIeanupSeconds LowMemoryThreshoIdM8ytes ProvisioningEnabIedTlme PrcvisicningMccIe ab System TaskExcIudes Type REG SZ REG DWORD REG DWORD REG DWORD REG DWORD REG DWORD REG DWORD REG DWORD REG_QWORD REG SZ REG SZ Données (valeur non définie) DxDDDD02î8 (600) DxDDDD012c EDO) DxDDDDDD3c (60) DxDDDD02î8 (600) DxDDDD02î8 (600) DxDDDOa8cO (43200) DxDDDDD014 (20) 0x6780806 (1736499974) true

    So, to be able to see again the publication within the software center and to get back others SCCM features on the machine, machine have to be go out from provisioning mode.

    I found this powerwhell cmd that makes the job :-)

    Invoke-WmiMethod -Namespace root\CCM -Class SMS_Client -Name SetClientProvisioningMode -ArgumentList $false

    Texte de remplacement généré par une machine :C cm Eval v CcmExec Commands FirstStaftIndicatorSet InitializedAfter800t CertEnraIIAgent FileCIeanupSeconds LowMemoryThreshoIdM8ytes ProvisioningEnabIedTlme PrcvisicningMccIE System TaskExcIudes REG DWORD REG DWORD REG_QWORD REG SZ REG SZ DxDDDOa8cO (43200) DxDDDDD014 (20) 0x6780806 (1736499974) false

    Kind regards,

    Iz.

    1 person found this answer helpful.
    0 comments No comments

  2. Simon Ren-MSFT 38,406 Reputation points Microsoft Vendor
    2025-01-13T01:42:16.7+00:00

    Hi,

    Hope you are doing well.

    1,For test purpose, you can also remove the test machine computer object from ConfigMgr console and then re-discover it to ConfigMgr. It should receive the in-place upgrade task sequence deployment again.

    2,As you have deployed the in-place upgrade task sequence to your test machine collection, you can also to clear PXE flag to have a try.

    When the PXE server receives the PXE request, it (the PXE server, not the client itself) interacts the client's MAC address and SMSBIOS with the MP to see if the client is in the ConfigMgr Database. If it isn't in the database, the client will be recognized as an unknown computer. So that the PXE server decides if there is a suitable deployment and optional advertisement for the unknown\known client.

    CM: Delving into the "Last PXE Advertisement" flag

    client records and multiple PXE boots

    Please note: The links are not from Microsoft, just for your reference.

    Hope I have explained this question clearly. Thanks for your time.

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Izanagi76 215 Reputation points
    2025-01-14T13:16:35.05+00:00

    Hi,

    You want me to accept an answer that I have finally publish ? :-)

    Regards,


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.