Windows 10 1909 to 2009

I am starting the upgrade from Windows 10 1909 to 2009. The last few times we have done this upgrade, we have had problems with a premature restart while the upgrade was in progress. We were told to set the following settings to help prevent the premature restart. Is this still the only workaround?

//Set client to prevent a premature restart before the Windows Upgrade is complete.

setting "_BESClient_ActionManager_PendingRestartExclusions"="drivers;DRIVERS;" on "{now}" for client
setting "_BESClient_Resource_StartupSleepSeconds"="300" on "{now}" for client