Partilhar via


GetModuleCommand.PSSession Property

Definition

If specified, then Get-Module will attempt to discover PowerShell modules on a remote computer using the specified session.

public:
 property System::Management::Automation::Runspaces::PSSession ^ PSSession { System::Management::Automation::Runspaces::PSSession ^ get(); void set(System::Management::Automation::Runspaces::PSSession ^ value); };
public System.Management.Automation.Runspaces.PSSession PSSession { get; set; }
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="PsSession")]
[System.Management.Automation.ValidateNotNull]
public System.Management.Automation.Runspaces.PSSession PSSession { get; set; }
member this.PSSession : System.Management.Automation.Runspaces.PSSession with get, set
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="PsSession")>]
[<System.Management.Automation.ValidateNotNull>]
member this.PSSession : System.Management.Automation.Runspaces.PSSession with get, set
Public Property PSSession As PSSession

Property Value

Attributes

Applies to