Windows – Change Roaming Aggressiveness

email me

Batch

:: created to change the wireless roaming to medium-high

:: the class - not used, because it may change from model to model
:: {4d36e972-e325-11ce-bfc1-08002be10318}

:: setup
setlocal enabledelayedexpansion
set /a count=1

:: uses dynamic reg scanning to find the right class and subkey
for /f "tokens=1-4 delims= " %%a in ('reg query HKLM\SYSTEM\CurrentControlSet\Control\Class /v RoamAggressiveness /s') do (
:: sets the returned reg key 
if !count!==1 set var1=%%a
set /a count+=1
)

:: applies reg change
reg add "%var1%" /v RoamAggressiveness /t REG_SZ /d 3 /f

exit /b 0

 

PowerShell

Set-NetAdapterAdvancedProperty -Name "Wi-Fi" -DisplayName "Roaming Aggressiveness" -DisplayValue "4. Medium-High"