When you use the Upgrade an operating system from upgrade package operating system task sequence to perform an in-place upgrade to Windows 10, the Configuration Manager client may be left in provisioning mode after the upgrade succeeds and the client restarts.
This issue can occur when you specify an OEM product key for the operating system upgrade.
To fix this issue, only specify volume license or retail product keys for the operating system upgrade.
The task sequence depends on the execution of SetupComplete.cmd by Windows to take the Configuration Manager client out of provisioning mode. SetupComplete.cmd is disabled when you use OEM product keys. You can check the C:\Windows\Panther\UnattendGC\Setupact.log file to determine whether SetupComplete.cmd was executed or skipped.
To clear clients that are already stuck in Provisioning Mode, run the SetClientProvisioningMode method from an elevated command prompt:
Powershell.exe Invoke-WmiMethod -Namespace root\CCM -Class SMS_Client -Name SetClientProvisioningMode -ArgumentList $false
Article ID: 4021950 - Last Review: 2017, മേയ് 17 - Revision: 6