Hi Leo,
Thank you for sharing the question.
From what you are saying, I think the docking station's network adapter conflicting with the WiFi card during undocking caused the driver state failure.
The seamless way you can try is to adjust the wireless adapter’s power management settings to prevent Windows from putting the wifi card to sleep which causes it to disappear upon undocking instead of using the workaround by performing the hard restart or reinstall the driver.
Highly recommended to test the following steps on one of the affected machines first to see if the wifi icon remains available after undocking:
Go to Control Panel > Power Options > Change plan settings > Change advanced power settings.
Then, expand Wireless Adapter Settings and Power Saving Mode
Set On battery and Plugged in to Maximum Performance.
Hope this helps! Feel free to let me know if you have any other questions.
Best regards.