We've been seeing intermittent issues with users connecting to wifi. It seems that this may be due to interference, with the recommended solution being to change the RoamingPreferredBandType to 5GHz.
Per this thread, this can be done by amending the registry setting RoamingPreferredBandType's value to 2. Some code (for both bat
and powershell
have been included on that thread; but these seem to scan through a large chunk of the registry finding and updating all properties with this value. Whilst it's pretty unlikely that other entries will have a property with this name, I don't like code that works on assumptions; and this approach isn't overly efficient. Is there a better way to do this, targeting only those entries that matter?