How to change my system path when it is already too long?

Alternatively, you can launch the executable that the system is trying to launch, explicitly

%windir%\system32\systempropertiesadvanced.exe

can be found in the folder

c:\windows\system32\systempropertiesadvanced.exe (the system drive and windows folder can vary)

and then can easily modify the path in the environment variables.


The path is located in the registry at

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path

The path should contain

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

and

\Windows\System32\WindowsPowerShell\v1.0\

Once the changes were made, I needed to reboot my computer