I downloaded the ISO from the Microsoft website using the User-Agent trick (actually I had read about it before but had completely forgotten) the build of it is 19045.2006. In this build I was able to replicate the bug in VM.
Apparently the problem is with the tasks in \Microsoft\Windows\SettingSync
If you disable BackgroundUploadTask (needs NSudo or PowerRun) and NetworkStateChangeTask (only needed if connected to the internet) the bat file manages to complete, otherwise not.
So apparently this has been fixed in the latest updates.
Apparently the problem is with the tasks in \Microsoft\Windows\SettingSync
If you disable BackgroundUploadTask (needs NSudo or PowerRun) and NetworkStateChangeTask (only needed if connected to the internet) the bat file manages to complete, otherwise not.
So apparently this has been fixed in the latest updates.