1. Please use the OS Installation wizard (not the os installation set wizard)

Note: at the moment the Windows 10 preview sources are not recognized by HEAT DSM 2015.1. After you finished the wizard you can copy the sources manually into the project extern$ directory of the os setup file package manually.

2. Microsoft sometimes change the name of the Windows 10 image. You can change the name manually in the OS configuration package. Therefore you can get the info out of the install.wim with tools like "imagex" or "dism" and enter the name as a new option value in the installation parameter "edition" of the os configuration package. You should set the value "as default".

Example on how to get image info via dism.exe:

Note: The OS recognition doesn´t work correctly (as Windows 10 is currently only available as preview version). So it´s important that you flag all packages assigned to the Win 10 client for Windows 10 and Windows 8.1!

In a productive environment I would add some reboot control or ask the enduser for permission before upgrading :-)

Remaining issue is, that due to the fact that the setup process reboots the computer several times, no ReturnCode will be available and - much more important - the policy instance will remain pending restarting the installation with the next installer execution.

So I will most likely add a registry key before running the setup and check this key for existance at the top of the script end then exit. Or I could check for existance of the "Windows.old" folder... or... or... or...