Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

GetPSSessionCommand Class

The Get-PSSession cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.


Namespace: Microsoft.PowerShell.Commands
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As GetPSSessionCommand

[OutputTypeAttribute(System.Compiler.TypeNode[])] 
[CmdletAttribute("Get", "PSSession", DefaultParameterSetName="Name", HelpUri="http://go.microsoft.com/fwlink/?LinkID=135219", RemotingCapability=RemotingCapability.OwnedByCommand)] 
public class GetPSSessionCommand : PSRunspaceCmdlet, IDisposable
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[]) */ 
/** @attribute CmdletAttribute("Get", "PSSession", DefaultParameterSetName="Name", HelpUri="http://go.microsoft.com/fwlink/?LinkID=135219", RemotingCapability=RemotingCapability.OwnedByCommand) */ 
public class GetPSSessionCommand extends PSRunspaceCmdlet implements IDisposable
OutputTypeAttribute(System.Compiler.TypeNode[]) 
CmdletAttribute("Get", "PSSession", DefaultParameterSetName="Name", HelpUri="http://go.microsoft.com/fwlink/?LinkID=135219", RemotingCapability=RemotingCapability.OwnedByCommand) 
public class GetPSSessionCommand extends PSRunspaceCmdlet implements IDisposable

This cmdlet retrieves the interactive sessions for the current session. For more information about this cmdlet, see Get-PSSession in the Microsoft TechNet library.

For Help at the command line, type:

get-help get-pssession


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2015 Microsoft