RemoteFile Parameter (Get-SFTP Cmdlet)
The name of the remote file to download.
Syntax
Get-SFTP -RemoteFile string
Remarks
The RemoteFile is either an absolute file path, or a relative path based on the home path set by the server. This value must include a filemask or filename. For instance:
get-ftp -server TestServer -user test -password test -remotefile MyFolder/*.txtThe above code will download all .txt files in the MyFolder folder.
Default Value
""
Parameter Position
1
Parameter Alias
Download