Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Get-PSSession

Get-PSSession - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-PSSession

Short description
Gets the Windows PowerShell sessions (PSSessions) in the current session.

Syntax
Get-PSSession [[-ComputerName] <string[]>] [<CommonParameters>]

Get-PSSession [-Id] <Int32[]> [<CommonParameters>]

Get-PSSession [-InstanceId <Guid[]>] [<CommonParameters>]

Get-PSSession [-Name <string[]>] [<CommonParameters>]

Description
The Get-PSSession cmdlet gets the Windows PowerShell sessions (PSSessions) that were created in the current session
. 

Without parameters, Get-PSSession gets all of the PSSessions created in the current session. You can use the parame
ters of Get-PSSession to get the sessions that are connected to particular computers, or you can identify sessions 
by their names, IDs, or instance IDs.

For more information about Windows PowerShell sessions, see about_PSSessions.