Passive Parameter (Connect-FTP Cmdlet)
Specifies whether the provider uses passive mode for FTP connections.
Syntax
Connect-FTP -Passive bool
Data Type
bool
Default Value
true
Remarks
This property determines whether the cmdlet directs the FTP server to operate in passive mode.
If this property is set to true, the cmdlet sends the PASV command to the server. In passive mode, all connections are initiated by the client, which helps avoid firewall restrictions that block incoming server connections to high-numbered ports.
If this property is set to false, the cmdlet uses the PORT command, allowing the server to initiate data connections back to the client.
Passive mode is recommended when the client is behind a firewall or on a network that blocks incoming connections.