I know this is an old post, but I wanted to give anyone who happens to come upon this post while searching for a way to do this some help.
You can easily script this setting. You just need to search the Registry for the value "RoamingPreferredBandType" and change it to "2". Here is code that you can use in a simple batch file to do this:
**Start Copy Below**
@echo off
set iwifi=
FOR /f "usebackq" %%i IN ('reg query HKLM\SYSTEM\CurrentControlSet\Control\Class /v RoamingPreferredBandType /s^|find "Class"') DO set iwifi=%%i
if "%iwifi%"=="" goto bye
reg add %iwifi% /v RoamingPreferredBandType /t REG_SZ /d 2 /f
set iwifi=
:bye
exit
**End Copy Above**
You need to do a search because there will be a key in the path that is a GUID that will be different depending upon what hardware is installed.