PSRemotingActivity Class

Definition

Base class for PowerShell-based workflow activities

public abstract class PSRemotingActivity : Microsoft.PowerShell.Activities.PSActivity, Microsoft.PowerShell.Activities.IImplementsConnectionRetry
Inheritance
Derived
Implements

Inherited Members

Microsoft.PowerShell.Activities.PipelineEnabledActivity

Microsoft.PowerShell.Activities.PSActivity

Constructors

PSRemotingActivity()

Properties

PSAllowRedirection

Determines whether to allow redirection by the remote computer. The default is false.

PSApplicationName

Defines the remote application name to connect to. The default is "wsman".

PSAuthentication

Defines the authentication type to be used in the remote connection.

PSCertificateThumbprint

Defines the certificate thumbprint to be used in the remote connection.

PSComputerName

The computer name to invoke this activity on.

PSConfigurationName

Defines the remote configuration name to connect to. The default is "Microsoft.PowerShell".

PSConnectionRetryCount

Defines the number of retries that the activity will make to connect to a remote machine when it encounters an error. The default is to not retry.

PSConnectionRetryIntervalSec

Defines the delay, in seconds, between connection retry attempts. The default is one second.

PSConnectionUri

Defines the fully-qualified remote URI to connect to. When specified, the PSComputerName, PSApplicationName, PSConfigurationName, and PSPort are not used.

PSCredential

Defines the credential to use in the remote connection.

PSPort

The port to use in a remote connection attempt. The default is: HTTP: 5985, HTTPS: 5986.

PSRemotingBehavior

Defines the remoting behavior to use when invoking this activity.

PSSessionOption

Defines any session options to be used in the remote connection.

PSUseSsl

Determines whether to use SSL in the connection attempt. The default is false.

SupportsCustomRemoting

Declares whether this command supports its own custom remoting. Commands that support their own custom remoting should return TRUE from this property, and use the PSComputerName parameter as required when the 'PSRemotingBehavior' argument is set to 'Custom'.

Methods

GetImplementation(NativeActivityContext)

Prepare commands that use PSRP for remoting...

GetIsComputerNameSpecified(ActivityContext)

Returns TRUE if the PSComputerName argument has been specified, and contains at least one target.