Windows weird behaviors

I recently bought a new notebook (ASUS ROG GL703GM), and one of the issues I solved is the 5ghz wireless.

It can connect without any problem on network 2ghz but not to 5ghz because the system WLAN Autoconfig service quit itself.

While looking for a solution, I discovered that if switching off and on the wireless interface, it was likely connected to 5ghz.

During my investigations, I reinstalled intel wireless drivers, antivirus, system scans… reset or restore many other things, but I wasn’t able to find an effective solution.

The turning point has occurred when I fell into the system environment variables and I saw how PATH variable was set up.

It had invalid or duplicate folders, bad folder priorities, …

By fixing it, the oddities disappeared.

The Fix

updated 29/10/2019
To verify and fix environmental variables you have to:

  • start ‘sysdm.cpl
    or right-click on β€˜This PC’, select β€˜Properties’ and then click on β€˜Advanced System Settings’
  • then click on β€˜Advanced’ tab, and then β€˜Environmental Variables…’

From here we can access to all user and system local variables.

From the system list, select and open the β€˜PATH’ variable, and:

  • remove any invalid folder
  • remove any duplicated or equivalent item.
  • resolve any redundant item (like β€˜c:\windows\..\users’ to ‘c:\users‘ for example).
  • sort items by your convenience and in a way that to keep the following system items nearest to the top (in this very order):

This because anything above these system entries may poison programs needing some system files (with an outdated file for example).Β  Put non-essential items after the system entries above.

  • save changes
  • reboot

In cases like mine, this should, at least, mitigate the oddities.


NOTE: It is a good idea to give a look at the user β€˜PATH’ variable too.

NOTE2: In old OSs, it is possible to have the value of this variable in a single edit field. Copy it, and paste it in a Notepad like editor, to edit it comfortably. It is important to avoid any error while fixing it.