WSManConnectionInfo Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the WSManConnectionInfo class. This constructor is introduced by Windows PowerShell 2.0.

Namespace:   System.Management.Automation.Runspaces
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

NameDescription
System_CAPS_pubmethodWSManConnectionInfo()

Initializes a new instance of the WSManConnectionInfo class that connects only to the local computer. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodWSManConnectionInfo(Boolean, String, Int32, String, String, PSCredential)

Initializes a new instance of the WSManConnectionInfo class that contains a value that indicates whether a secure connection such Hypertext Transfer Protocol over Secure Socket Layer (HTTPS) is used, the name of the computer, credentials, and more. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodWSManConnectionInfo(Boolean, String, Int32, String, String, PSCredential, Int32)

Initializes a new instance of the WSManConnectionInfo class that contains a value that indicates whether a secure connection such Hypertext Transfer Protocol over Secure Socket Layer (HTTPS) is used, the maximum allowed time (in milliseconds) for the remote runspace to open, and more. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodWSManConnectionInfo(PSSessionType)

Initializes a new instance of the WSManConnectionInfo class that contains a configuration type. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodWSManConnectionInfo(String, String, Int32, String, String, PSCredential)

Initializes a new instance of the WSManConnectionInfo class that contains the schema, computer name, port, credentials, and more. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodWSManConnectionInfo(String, String, Int32, String, String, PSCredential, Int32)

Initializes a new instance of the WSManConnectionInfo class that contains the schema, computer name, the maximum allowed time (in milliseconds) for the remote runspace to open, and more. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodWSManConnectionInfo(Uri)

Initializes a new instance of the WSManConnectionInfo class that contains the uniform resource identifier (URI) that defines the connection endpoint. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodWSManConnectionInfo(Uri, String, PSCredential)

Initializes a new instance of the WSManConnectionInfo class that contains the uniform resource identifier (URI) of the connection endpoint, the URI of the shell, and the credentials used to make the connection. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodWSManConnectionInfo(Uri, String, String)

Initializes a new instance of the WSManConnectionInfo class that contains the Uniform Resource Identifier (URI) of the connection endpoint, the URI of the shell, and a thumbprint of the certificate used to make the connection. This constructor is introduced by Windows PowerShell 2.0.

Return to top

Community Additions

ADD
Show: