Gets all environment variable names.
Get-EnvironmentVariableNames `
[-Scope {Process | User | Machine}]
Provides a list of environment variable names based on the scope. This can be used to loop through the list and generate names.
Process dumps the current environment variable names in memory / session. The other scopes refer to the registry values.
None
None
None
EXAMPLE 1
Get-EnvironmentVariableNames -Scope Machine
- [[Get-EnvironmentVariable|HelpersGetEnvironmentVariable]]
- [[Set-EnvironmentVariable|HelpersSetEnvironmentVariable]]
[[Function Reference|HelpersReference]]
NOTE: This documentation has been automatically generated from Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-EnvironmentVariableNames -Full
.