Skip to content

Get-EnvironmentPath

SYNOPSIS

Get the PATH environment variable.

SYNTAX

AsString (Default)

Get-EnvironmentPath [-Scope <string>] [<CommonParameters>]

AsArray

Get-EnvironmentPath [-Scope <string>] [-AsArray] [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Get the PATH environment variable for the current user or all users.

EXAMPLES

EXAMPLE 1

Get-EnvironmentPath -Scope CurrentUser

Get the PATH environment variable for the current user.

EXAMPLE 2

Get-EnvironmentPath -Scope AllUsers -AsArray

Get the PATH environment variable for the current user as an array.

PARAMETERS

-AsArray

Return the environment variable as an array.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: AsArray
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Scope

The scope of the environment variable.

Type: System.String
DefaultValue: CurrentUser
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.String

{{ Fill in the Description }}

NOTES

{{ Fill in the related links here }}