Skip to content

Pop-EnvironmentBlock

SYNOPSIS

PSCX Cmdlet: Pops the topmost environment block.

SYNTAX

Pop-EnvironmentBlock [<CommonParameters>]

DESCRIPTION

Pops the environment block and restores the state of all environment variables to the values stored in the environment block.

EXAMPLES

EXAMPLE 1

PS C:\>

C:\> Pop-EnvironmentBlock

Restores the current set of environment variables from the set at the top of the environment block stack.

PARAMETERS

CommonParameters

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

INPUTS

OUTPUTS

NOTES

Add-PathVariable

Get-PathVariable

Set-PathVariable

Push-EnvironmentBlock

Back to top