When configuring Script Actions for the Virtual Machine first-time setup in the MED-V management console, it is important not to add in an additional "Restart Windows" action at the end as it is not necessary. The first-time setup will always reboot the guest at the end of the last script action.
For example, if a Virtual Machine setup script is mapped out as follows:
In the above example, there will be an additional restart following completion resulting in two reboots following the "Join Domain" Action.
If we remove the last "Restart Windows" action, the reboot needed to follow the "Join Domain" action will occur as a result of the culminating reboot at the end of the script.
Steve Thomas | senior Support Escalation Engineer