What timeout value is a good value here ? 60 min is too low on slow internet connection if running multiple laptops at same time.
One issue is that the detection file is created in the beginning of the script, so it doesn´t retry UpdateOS after timeout during autopilot.