Issue with automatically generated names based on serial numbers for virtual machines in SCCM
I noticed this issue at a customer where they were deploying machines and automatically configuring the machine name according to serial number.
There were no issues with deploying physical machines, but virtual machines were failing during the “Apply Windows Settings” step with the following error code:
Failed to open the Task Sequencing Environment. Code 0x80220005. Please ensure you are running this executable inside a properly configured OS
The reason why we see this issue is that virtual machines have longer serial numbers than 16 characters, which is the maximum amount of characters allowed for a machine name during OSD.
If you have a script that sets the serial number automatically, you will need to configure it to only take the first 16 characters of the serial number.
About the author
Daniel Classon works as a Senior Consultant at Mansoft, focusing on Microsoft Configuration Manager, Windows 10 and Powershell