Search notes:

setx.exe

setx.exe creates or modifies an environment variable (var) to a specific value (value):
SETX [/S system [/U [domain\]user [/P [password]]]] var value [/M]
SETX [/S system [/U [domain\]user [/P [password]]]] var /K regpath [/M]
SETX [/S system [/U [domain\]user [/P [password]]]] /F file {var {/A x,y | /R x,y string}[/M] | /X} [/D delimiters]

Parameters

/S system Name of computer (system) where environment variable is managed
/U [domain\]user Specifies the user name whose environment is changed
/P [password] Specifies the password, used in combination with /U. Prompts for input if omitted.
/K regpath Specifies that the variable is set based on information from a registry key/value, for example HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation\StandardName (Note: StandardName is a value, not a key).
/F file Specifies the filename of the text file to use.
/A L,Y Specifies absolute file coordinates (line L, item Y) as parameters to search within the file.
/R x,y string Specifies relative file coordinates with respect to "string" as the search parameters.
/M Modify HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment rather than HKEY_CURRENT_USER\Environment.
/X Displays file contents with x,y coordinates.
/D delimiters Specifies additional delimiters such as , or \. The built-in delimiters are space, tab, carriage return and linefeed. Any ASCII character can be used as an additional delimiter.
/? Displays this help message.

Index