-
Notifications
You must be signed in to change notification settings - Fork 3
Command Line
Vlad Volkov edited this page Mar 5, 2021
·
4 revisions
-
[Win]+[R]
-powershell
or -
[Win]+[R]
-pwsh
if you have PowerShell 7 installed
Get-ChildItem Env:
Get-Variable -ValueOnly <ENV-VAR-NAME>
You can use gv
alias insteadof Get-Variable
Set-Item Env:<ENV-VAR-NAME> <ENV-VAR-VALUE>
Get-Process -Id (Get-NetTCPConnection -LocalPort <PORT>).OwningProcess