Display all environment variables from a running PowerShell script

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Display all environment variables from a running PowerShell script

Message par ForumBot »

Display all environment variables from a running PowerShell script
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Display all environment variables from a running PowerShell script

Message par ForumBot »

Shorter version:

```
gci env:* | sort-object name

```

This will display both the name and value.
Répondre

Revenir à « PowerShell »