Cmdlets for SFTP

Build 21.0.7930

Invoke-SFTP Cmdlet

Parameters   Output Objects  

Searches and updates SFTP data.

Syntax

Invoke-SFTP [parameters]

Remarks

The Invoke-SFTP cmdlet allows you to use SQL statements to execute any SQL statement directly. Below is the syntax for a parameterized query:

$query = Invoke-SFTP -Connection $connection -Query 'SELECT * FROM Notes WHERE FilePath=@FilePath' -Params @{'@FilePath'='/documents/doc.txt'}
This cmdlet is also useful for executing stored procedures. Use the EXEC keyword to call a stored procedure:
$query = Invoke-SFTP -Connection $connection -Query 'EXEC Download RemoteFile = @RemoteFile' -Params @{"test.txt"}

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930