Windows Environment Variables
Check
Check
REG QUERY HKEY_CURRENT_USER\Environment
REG QUERY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\"Session Manager"\Environment
or
REG QUERY HKCU\Environment
REG QUERY HKLM\SYSTEM\CurrentControlSet\Control\"Session Manager"\Environment
You can also launch System Properties, choose the Advanced tab and click Environment Variables...
sysdm.cpl
Or launch the Environment Variables screen directly using...
rundll32 sysdm.cpl,EditEnvironmentVariables
Set Environment Variable
Set Environment Variable
SETX VARIABLE "value"
Alternatively use
regedit
or
rundll32 sysdm.cpl,EditEnvironmentVariables
or, to also be able to Edit the System Environment Variables...
start-process rundll32 sysdm.cpl,EditEnvironmentVariables -verb RunAS
Unset Environment Variable
Unset Environment Variable
SETX VARIABLE ""
REG DELETE HKCU\Environment /V VARIABLE /F
Bibliography
Bibliography
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/reghttps://docs.microsoft.com/en-us/windows-server/administration/windows-commands/reg-query
https://www.winhelponline.com/blog/set-user-environment-variable-setx-windows-10/http://www.adp-gmbh.ch/win/misc/environment_variables.htmlhttps://gist.github.com/refactorsaurusrex/4cce03f6fe714db533d6c7bcb5a57444https://serverfault.com/questions/351129/can-the-environment-variables-tool-in-windows-be-launched-directly