RemoteFile Parameter (Get-SFTP Cmdlet)

The name of the remote file to download.


Get-SFTP -RemoteFile string


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/*.txt
The above code will download all .txt files in the MyFolder folder.

Default Value


Parameter Position


Parameter Alias


Copyright (c) 2022 /n software inc. - All rights reserved.
NetCmdlets 2020 - Version 20.0 [Build 8165]