Answered by : cautious-capuchin-lz0j9zw203ol
# Windows PowerShell
PS C:\> $env:VAR_NAME="VALUE"
Source : https://www.shellhacks.com/windows-set-environment-variable-cmd-powershell/ | Last Update : Tue, 02 Jun 20
Answered by : wicked-wolverine-o15cwn9n1xmq
[System.Environment]::GetEnvironmentVariables()
Source : | Last Update : Mon, 03 Jan 22
Answered by : ryan8234
#pws
$Env:path
Get-ChildItem env
Source : https://stackoverflow.com/questions/50861082/how-to-print-environment-variables-to-the-console-in-powershell | Last Update : Tue, 28 Jul 20
Answered by : gana
echo $Env:PATH | tr ';' '\n'
Source : | Last Update : Tue, 26 Oct 21
Answered by : drakonkat
$env:path
Source : https://stackoverflow.com/questions/50861082/how-to-print-environment-variables-to-the-console-in-powershell | Last Update : Tue, 17 Nov 20
Answered by : kuba-sypek
gci env:* | sort-object name
Source : | Last Update : Tue, 20 Sep 22
Answered by : inquisitive-ibex-0khppthwc4z0
Get-Childitem -path env:
Source : https://ss64.com/ps/syntax-env.html | Last Update : Sat, 18 Sep 21
Answered by : weary-willet-jzyed3cqzy5v
#Windows Powershell
cd Env:
Get-ChildItem
Source : | Last Update : Tue, 04 Aug 20
Answered by : muhammad-rehan-abbasi-we2d3q4wnhyr
$env:variable = 'variable value'
Source : https://www.tutorialspoint.com/how-to-set-environment-variables-using-powershell | Last Update : Tue, 22 Feb 22