Windows 10: System environment variable won't stick

Discus and support System environment variable won't stick in Windows 10 Support to solve the problem; Running Win10 Home on an Acer Spin 3, 64bit, i7cpu. I try to add a path to the system environment variables by: 1. Control Panel > System > Advanced... Discussion in 'Windows 10 Support' started by mck, Mar 2, 2017.

  1. MCK
    mck Win User

    System environment variable won't stick

    Running Win10 Home on an Acer Spin 3, 64bit, i7cpu. I try to add a path to the system environment variables by:

    1. Control Panel > System > Advanced system settings > Advanced tab > Environment variables

    2. The "Environment Variables" window opens.
    3. In the "System Variables" pane I select "Path" and click the EDIT button.
    4. A list of the current system paths is displayed.
    5. I click the NEW button, browse to the path I want to add which is "C:\Python36-32" and click OK. The path "C:\Python36-32" is added to the list of current system paths.
    6. I click OK and am returned to the "Environment Variables" window.
    7. I click the "X" at the top right to close the "Environment Variables" window.

    Now if I click the "Environment Variables" button again (end of step-1) and repeat steps 2-4, the new path I added in step-5 is gone. IOW, adding a new path won't stick.

    What am I doing wrong?

  2. ustulo Win User

    Edit Environment Variables of Standard User Account

    In Windows 10, how can I set user-level (not system wide) environment variables for a standard user account? To clarify: I'm not talking about editing system environment variables. Also, just running the System app in Control Panel as admin won't work because
    that would set the environment variables for that admin user.

    When I go to Control Panel -> User Accounts, then click the "Change my environment variables" link in the left-hand action pane, nothing happens.

    If I go to the search box on the task bar and type "environment", then click "Edit environment variables for your account", nothing happens.

    Currently I have JAVA_HOME set to an incorrect value in my user account, which is a standard user not an admin. If I edit environment variables as admin, it does not show up in the system environment variables nor in the user environment variables (since
    the Administrator account is a different user).
    ustulo, Mar 2, 2017
  3. suat.cini Win User
    User File Relocation

    You can use System Properties, Startup and Recovery, Environment Variables.


    Control Panel->System and Security->System->Advanced System Settings->Advanced tab->Environment Variables.

    Here you can edit complete environment variables, both for your account and for system-wide variables. But I strongly advise not to do this as it may cause system instability and errors.
    suat.cini, Mar 2, 2017
  4. Samuria Win User

    System environment variable won't stick

    If you open a CMD prompt type set does it show there how long is the path could it be to long 256 is the max length unless your on new version
    Samuria, Mar 2, 2017
  5. MCK
    mck Win User
    Doing what you suggested above, the path is 200 characters. Here's a copy:

    Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v 1.0\;C:\Program Files (x86)\Common Files\Adobe\AGL;C:\Users\Mo Spin3\AppData\Local\Microsoft\WindowsApps

    Any other ideas appreciated. Thanks.
  6. Bree New Member
    256 characters is the limit on an individual path, but PATH is an environment variable that happens to contain multiple paths. None of the paths it contains should be longer that 256 characters, but...

    Even 2048 characters is far longer than the few hundred @mck needs.

    I've just added another path to PATH in the way described in the OP. Not only does adding a new path 'stick', but my PATH is now 514 characters. There is obviously something getting in the way of @mck adding a path, but it's not a character limit.
    Bree, Mar 3, 2017
  7. MCK
    mck Win User

    Thank you for testing the procedure on your PC. After a lot of Googling before opening this thread, I saw folks who could and could not add a path the way I described. There seems to be something with either the version of Win10 installed or something in the PC itself that prevents updating the system environment variable's path.

    Is your version Win10 home? I have Win10 home on my Acer Spin3 laptop.
  8. Bree New Member

    System environment variable won't stick

    Yes @mck, Win10 Home (x64) version 1607 os build 14393.693 (English International, EN-GB) on Toshiba L750. The path I added is still there after a full shutdown and restart. It was something I'd been meaning to add anyway, but not got round to yet. You gave me a good excuse to try *Smile
    Bree, Mar 3, 2017
  9. MCK
    mck Win User
    Hi Bree,

    I also have Win10 Home (x64) version 1607 os build 14393.693. (English U.S.)
    I wonder if the version of Win10 Home that came with my Acer Spin3, 64bit, i7, 12GB laptop is a modified OEM version of Win10 Home?

    If I'm unable to find a solution to my problem, if I download a Win10 Home (x64) and do a fresh install, would the activation be automatic as I've read that Win10 is supposed to work? I don't know the Win10 product key on my laptop since it came preinstalled from the factory.

    If you don't know, if anyone who does know can chime in, it will be appreciated.
    Also a link for where to download a good copy of Win10 Home would also be appreciated, though I could search these forums for an answer.

  10. Bree New Member
    Yes, with a previously activated Win10 on the PC its hardware ID is registered on Microsoft's activation servers. You can skip entering a key if asked (there's an 'I don't have one' link) and it should activate automatically once it can contact the activation servers.

    You may like to try an in-place repair install first - you can keep all your files and installed apps that way.
    Repair Install Windows 10 with an In-place Upgrade
  11. MCK
    mck Win User
    Ohh, that is really helpful advice! I'm on vacation right now but will try an in-place repair install when I return home.

    Thanks much,
  12. Bree New Member
    To get Windows 10 from Microsoft...
    Windows 10 ISO Download
  13. MCK
    mck Win User

    System environment variable won't stick

  14. Pyprohly Win User
    Step 7 should be,
    Pyprohly, Mar 4, 2017
  15. MCK
    mck Win User
    I triple checked that when I did the procedure in my first post. Unfortunately, there is no "OK" at the bottom, only NEW, EDIT and DELETE buttons, so I had to click the "X" at the top. There is no scroll bar to scroll the screen. When I move the window up, the bottom shows so there is no "OK" button at all.

    Is there an "OK" button on your Environment Variables window?

System environment variable won't stick

  1. System environment variable won't stick - Similar Threads - System environment variable

  2. WSL2 and Environment Variables

    in Windows 10 Customization
    WSL2 and Environment Variables: I am trying to install Selenium and build a python application that includes automating web page completion login info. I would like to built the program using VSCode and WSL2. I've installed selenium in WSL2. Selenium requires a webdriver api to be installed and included...
  3. Environment Variables

    in Windows 10 Customization
    Environment Variables: I am unable to add USER Variable in windows environment variable setting. Not asking for Path variables in system variables. Help will be appreciated. Thanks
  4. environment variable

    in Windows 10 Customization
    environment variable: What would happen when we deleted all the environment variable system directory.
  5. windows environment variable

    in Windows 10 Installation and Upgrade
    windows environment variable: I have deleted all thing and every thing from windows environment variable that's why I faces problem in running programe than how can I setup environment variable again?...
  6. System Environment variables

    in Windows 10 Customization
    System Environment variables: Hello! I have been trying to run executable programs using command prompt since a long time, added the path names to the System and user environment variables as well. But it is not helping, the command prompt is unable to run any file except the inbuilds such as notepad....
  7. Help with environment variables

    in Windows 10 Customization
    Help with environment variables: A while back, I made some changes to my environment variables (not realizing this was a bad idea), and Path system variable had system 32 removed (as well as others). This has caused me issues running commands from CMD, however, even after adding the path back and restarting,...
  8. User Environment Variable

    in Windows 10 Software and Apps
    User Environment Variable: Created an User Environment variable in Environment variable page in UI. It is seen in both UI and command prompt(Using set command). After restart it is not seen in command prompt when set command is used. Please help....
  9. Environment Variables

    in Windows 10 BSOD Crashes and Debugging
    Environment Variables: what will happen if i accidentally delete one of those environment variables without realizing it ? and how to fix it ?
  10. environment variables missing

    in AntiVirus, Firewalls and System Security
    environment variables missing: i also got error message 80007000cb