ImportModuleCommand.PSSession Property

Definition

If specified, then Import-Module will attempt to import PowerShell modules from 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="FullyQualifiedNameAndPSSession")]
[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="FullyQualifiedNameAndPSSession")>]
[<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