Skip to content

Latest commit

 

History

History
55 lines (30 loc) · 1.01 KB

HelpersGetEnvironmentVariableNames.md

File metadata and controls

55 lines (30 loc) · 1.01 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

Inputs

None

Outputs

None

Parameters

Examples

EXAMPLE 1

Get-EnvironmentVariableNames -Scope Machine

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.