TLDR
Enter a command. For example: choice, azcopy, print, cls, where.

setx

 
Sets persistent environment variables. More information: https://docs.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}}

This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.