Set Environment Variables - Control with Setx | Online Free DevTools by Hexmos

Control environment variables with Setx on Windows. Persistently set user and system variables, including remote machine configuration. Free online tool, no registration required.

setx

Set persistent environment variables. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/setx.

  • Set an environment variable for the current user:

setx {{variable}} {{value}}

  • Set an environment variable for the current machine:

setx {{variable}} {{value}} /M

  • Set an environment variable for a user on a remote machine:

setx /s {{hostname}} /u {{username}} /p {{password}} {{variable}} {{value}}

  • Set an environment variable from a registry key value:

setx {{variable}} /k {{registry\key\path}}