RemotingBehavior Enum

Definition

Controls or overrides the remoting behavior, during invocation, of a command that supports ambient remoting.

C++
public enum class RemotingBehavior
Inheritance
RemotingBehavior

Fields

Name Value Description
None 0

In the presence of ambient remoting, run this command locally.

PowerShell 1

In the presence of ambient remoting, run this command on the target computer using PowerShell Remoting.

Custom 2

In the presence of ambient remoting, and a command that declares 'SupportedByCommand' remoting capability, run this command on the target computer using the command's custom remoting facilities.

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0