Search notes:

PowerShell session

A session is the environment in which a PowerShell process runs.
This environment allows to execute commands and add items to it.

Container for items

A session is a logical container for different kinds items
These items exist in the session only. When the session ends, these items go with it.

PSSessions

A PsSession is a user-managed session.
A PsSessions is typically used to run commands on a remote computer.
It is possible, however, to run commands remotely without creating a PsSession when using remote-enabled cmdlets (such as invoke-command) and their -computerName parameter.

Cmdlets

The cmdlet noun psSession deals with sessions.

See also

The automatic variable $PID stores the current session's process identifier.
The extended types of the current session can be manipulated with the cmdlet noun typeData.
A session maintains a set of object formatting instructions (views) that define how objects are displayed on the console when the flow out of a pipeline.
The names of the snap-ins of the current session can be exported with export-console.

Index