Remote reboot logic is broken when targeting Windows 11 machines #487
Labels
2 - Working
A user or team member has started working on the issue
Bug
Issues where something has happened which was not expected or intended
Milestone
What You Are Seeing?
Whenever Boxstarter tries to restart the machine remotely, it will reconnect the Powershell session before the restart actually happens, which leads to failure.
Boxstarter correctly detects the severed remote session as the restart is triggered, but will reconnect (see the red arrow in the image) before the machine actually restarts (still on the restarting splash screen), which ultimately leads to the I/O error in the image.
What Is Expected?
The machine is supposed to wait with reestablishing remoting until machine has fully rebooted.
How Did You Get This To Happen? (Steps to Reproduce)
Trigger a remote install using the following command:
Install-BoxstarterPackage -ComputerName $hostname -PackageName $package -Credential $cred -StopOnPackageFailure
and triggering a restart from within the BoxStarter package withInvoke-Reboot
Output Log
The text was updated successfully, but these errors were encountered: