WSManConnectionInfo.SetSessionOptions(PSSessionOption) Method

Definition

Populates session options from a PSSessionOption instance.

public:
 override void SetSessionOptions(System::Management::Automation::Remoting::PSSessionOption ^ options);
public override void SetSessionOptions (System.Management.Automation.Remoting.PSSessionOption options);
override this.SetSessionOptions : System.Management.Automation.Remoting.PSSessionOption -> unit
Public Overrides Sub SetSessionOptions (options As PSSessionOption)

Parameters

options
PSSessionOption

Exceptions

  1. Proxy credential cannot be specified when proxy accesstype is None. Either specify a valid proxy accesstype other than None or do not specify proxy credential.

Applies to