Windows 7 upgrade to Windows 10 with SCCM fails on OEM machines

[German]System administrators who tries to upgrade Windows 7 machines to Windows 10 via SCCM need to be careful. Upgrading OEM machines fails because SetupComplete.cmd cannot run.


Another brief information for administrators in enterprises using OEM machines with Windows 7. If not done, in 2019 a migration to Windows 10 has to take place, and if no new hardware is purchased, the switch will be made by upgrading the Windows 7 systems.

Caution with SCCM and OEM machines

" src="" width="1" height="1">I''m not active in  this area, and this may isn't new to you. But I just post the information – maybe it will helpful for someone. The days I stumbled over this tweet.

Panu Saukko tried to upgrade Windows 7 Pro machines to Windows 10 using System Center Configuration Manager (SCCM). This approach has been described here. But since they were OEM machines, this upgrade failed with an error because the batch file SetupComplete.cmd could not run after the upgrade. The log file contains the hint:  

Client OS edition and OEM license detected and no enterprise edition detected, will not run SetupComplete.cmd

Not allowed to run the SetupComplete.cmd, will not run SetupComplete.cmd

The SetupComplete.cmd batch file is usually run after the user displays the desktop. According to this document, this setting is disabled when OEM product keys are used. This reddit thread also indicates that OEM machines cannot be upgraded because of the license key.


This article outlines, for example, how to perform an error diagnosis. Panu Saukko is not alone, because another user has reported to his tweet. What else can go wrong with OEM machines, e.g. regarding drivers, is described here – just to mention.

That's by design

On Panu Saukko's tweet, Microsoft employee Michael Niehaus contacted Microsoft and wrote that this was intended and by design.

Just provide a VL key during upgrade

Panu Saukko referred in the above tweet to a Microsoft support article Configuration Manager Client left in Provisioning Mode after upgrade to Windows 10. There is also the hint that the Configuration Manager client will remain in Provisioning Mode after a successful upgrade if OEM keys are used. The solution indicated within the article was simple: Just use only volume license or retail product keys for the operating system upgrade. In this blog post, someone has dealt with a similar case. 

In the tweet above, Panu Saukko also confirms that this approach works. Maybe someone will help.

Cookies helps to fund this blog: Cookie settings

This entry was posted in Software, Update, Windows and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *