< Back

Set-SFTPItem

Sat Jan 18, 2020 8:00 pm

NAME Set-SFTPItem



SYNOPSIS

Upload a scefied item to a remote server though a SFTP Session.





SYNTAX

Set-SFTPItem [-SFTPSession] <SftpSession[]> [-Path] <String[]> [-Destination] <String> [[-Force]]

[<CommonParameters>]



Set-SFTPItem [-SessionId] <Int32[]> [-Path] <String[]> [-Destination] <String> [[-Force]] [<CommonParameters>]





DESCRIPTION

Upload a scefied item to a remote server though a SFTP Session. The item can be either a file or a folder.





PARAMETERS

-Destination <String>

Remote path where to upload the item to.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Force [<SwitchParameter>]

Overrite item on remote host if it already pressent.



Required? false

Position? 3

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Path <String[]>

Local path to item to upload



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-SFTPSession <SftpSession[]>

Existing SFTPSession object.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-SessionId <Int32[]>

Session Id of an existing SFTPSession.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.Int32[]

SSH.SftpSession[] System.String System.String[]





OUTPUTS

System.Object







NOTES









Example 1



PS C:\\> Set-SFTPItem -SessionId 0 -Destination /tmp -Path ./Development/dns_test.py -Force







RELATED LINKS

Online Version: https://github.com/darkoperator/Posh-SS ... aster/docs