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 connect 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 is occurred when I fell into the system environmental 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

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 final ones are the following (in this very order):
%systemroot%\system32
%systemroot%
%systemroot%\system32\wbem
%systemroot%\system32\windowspowershell\v1.0
%systemroot%\system32\openssh
  • save changes
  • reboot

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

 

NOTE: It is a good idea to give a look 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 confortably. It is important to avoid any error while fixing it.