Class that exposes read only properties and which conveys information about a remote runspace object to the user. The class serves the following purpose: 1. Exposes useful information to the user as properties 2. Shields the remote runspace object from directly being exposed to the user. This way, the user will not be able to directly act upon the object, but instead will have to use the remoting cmdlets. This will prevent any unpredictable behavior.
public ref class PSSession sealed
public sealed class PSSession
type PSSession = class
Public NotInheritable Class PSSession
Private data to be used by applications built on top of PowerShell. Optionally sent by the remote server when creating a new session / runspace.
AvailabilityIndicates whether the specified runspace is available for executing commands.
ComputerNameName of the computer target.
ComputerTypeType of the computer target.
ConfigurationNameShell which is executed in the remote machine.
ContainerIdId of the container target.
IdSessionId of this runspace. This is unique only across a session.
InstanceIdInstanceID that identifies this runspace.
NameFriendly name for identifying this runspace.
RunspaceThe remote runspace object based on which this information object is derived.
TransportName of the transport used.
VMIdGuid of the virtual machine target.
VMNameName of the virtual machine target.
Methods Create(Runspace, String, PSCmdlet)Creates a PSSession object from the provided remote runspace object. If psCmdlet argument is non-null, then the new PSSession object is added to the session runspace repository (Get-PSSession).
ToString()ToString method override.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4