We have been fighting for a while to find a way to turn off hibernation in Windows 7 and 10 while imaging.
For some reason, we always get some workstations that go to sleep just before joining the domain.
We have a GPO the will disable hibernation, but since the computer goes to sleep before, nothing works.
So far we have tried many things in vain:

1- Hibernation disabled in the base image.
2- cmd /c powercfg.exe /hibernate off in the Unattend.xml.
3- Script that change the power scheme to high performance.

Any ideas why?