| Command Prompt | PowerShell | |
|---|---|---|
| show system variables | set | dir env: |
| use an environment variable | set pc=%computername% echo %pc% |
$pc = $env:computername echo $pc |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.