Set-BluGenieSessionInfo

Set-BluGenieSessionInfo

SYNOPSIS

Set-BluGenieSessionInfo will set a Current Session Environment varialbe to be passed to each new PSSession Runspace automatically

SYNTAX

Set-BluGenieSessionInfo [[-CaptureVarName] <String>] [[-EnvVarName] <String>] [-Walkthrough] [<CommonParameters>]

DESCRIPTION

Set-BluGenieSessionInfo will set a Current Session Environment varialbe to be passed to each new PSSession Runspace automatically.

All System variables will be removed once all Child and Parent sessions are closed.

EXAMPLES

EXAMPLE 1

Command: Set-BluGenieSessionInfo
Description: Capture the Default BluGenie Session variables in to an Environement variable named BGSessionInfo
Notes:

EXAMPLE 2

Command: Set-BluGenieSessionInfo -CaptureVarName 'TestVar' -EnvVarName 'NewSesson'

EXAMPLE 3

EXAMPLE 4

EXAMPLE 5

EXAMPLE 6

EXAMPLE 7

PARAMETERS

CaptureVarName

EnvVarName

Walkthrough

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.

Last updated