title: Permanently Change Environment Variables in Windows
body: <p>I found a way to change the default home directory of a user but I am having trouble with it. </p>
  
  <p><img src="https://i.stack.imgur.com/sDfDO.jpg" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/x96CK.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/ekSyc.png" alt="enter image description here"></p>
  
  <p>Doing this will change the home drive to C:</p>
  
  <p>But then when I check the environment variable:</p>
  
  <p><img src="https://i.stack.imgur.com/enmKP.png" alt="enter image description here"></p>
  
  <p>It is still H:, with a system restart the Enviroment variables in windows settings will also return to H:/</p>
  
  <p>I have also tried changing it like this:</p>
  
  <p><img src="https://i.stack.imgur.com/jlfNN.png" alt="enter image description here"></p>
  
  <p>Which appears to work but if i open a new cmd it will have reverted back to H:/</p>
  
  <p>Now I am trying to do this so that OpenSSH will recognise C as my home directory instead of H: which is a network drive, forcing OpenSSH not to work unless I cam connected to my university network via VPN.</p>
  
  <p>What can I do to set this permanently and in the eyes of OpenSSH?</p>