Vagrant shutting down and destroying itself during provision of ADDS on Win Server

I am using a windows server 2019 box and have created a powershell script setup an AD sandbox. It installs Active directory, creates a few OUs, groups and users.

Once AD is installed and promoted and goes to reboot, during reboot Vagrant then says shutting down then complete destroys the VM. There is a Winrm authorization error that spews all over the cli. Is there a way to overcome this? Should I be putting a sleep in the script or something like that?

You’ll likely want to use the reboot option to prevent a disconnection error.