Update-SFTP Cmdlet
Updates SFTP data.
Syntax
Update-SFTP [parameters]
Remarks
The Update-SFTP cmdlet allows you to use a syntax similar to SQL UPDATE statements to update SFTP data.
$conn = Connect-SFTP -RemoteHost 'MySFTPServer' Update-SFTP -Connection $conn -Table "Notes" -Columns @("Filename") -Values @("Jon Doe") -Id "1"The Where parameter can also be used to specify the primary key of the table:
Update-SFTP -Connection $conn -Table "Notes" -Columns @("Filename") -Values @("Jon Doe") -Where "Id = '1'"The primary key can also be passed to the cmdlet along the pipeline:
Select-SFTP -Connection $conn -Table Notes -Where "FilePath = '/documents/doc.txt'" | Update-SFTP -Columns @("FilePath") -Values @("/documents/doc.txt 2")