Get-PSSession - Powershell 2.0 CmdLet
Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.
More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.
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.