I found a way to change the default home directory of a user but I am having trouble with it.



Doing this will change the home drive to C:
But then when I check the environment variable:

It is still H:, with a system restart the Enviroment variables in windows settings will also return to H:/
I have also tried changing it like this:

Which appears to work but if i open a new cmd it will have reverted back to H:/
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.
What can I do to set this permanently and in the eyes of OpenSSH?