Skip to content

Latest commit

 

History

History
59 lines (32 loc) · 1.5 KB

HelpersGetEnvironmentVariableNames.md

File metadata and controls

59 lines (32 loc) · 1.5 KB

Get-EnvironmentVariableNames

Gets all environment variable names.

Syntax

Get-EnvironmentVariableNames `
  [-Scope {Process | User | Machine}]

Description

Provides a list of environment variable names based on the scope. This can be used to loop through the list and generate names.

Notes

Process dumps the current environment variable names in memory / session. The other scopes refer to the registry values.

Aliases

None

Examples

EXAMPLE 1

Get-EnvironmentVariableNames -Scope Machine

Inputs

None

Outputs

None

Parameters

Links

  • [[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.

View the source for Get-EnvironmentVariableNames