How to change users Environment variables persistenty without UI

Hallo, are you also borried with all the changes of your User variables or System variables in:

Computer > Properties > Advanced System settings > System Properties > Advanced > Environment variables

Here is how it looks like in UI

Less known receipt how to do that is to use setx command line:

setx variable_name variable_content

for example:

setx Hello World


which sets Hello variable to World string.

Immediatelly, you can check how it looks now in Environment Variables dialog:

And you will see there a new wanted value 🙂

Good luck

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s