# Transfer files with PowerShell

Transfer files with PowerShell on Evotec with installation guidance, setup notes, reference details, and project documentation.

Project

Transferetto

Small PowerShell module with FTPS/SFTP functionality

[View on GitHub](https://github.com/EvotecIT/Transferetto) [Visit Website](#) [Releases](https://github.com/EvotecIT/Transferetto/releases/tag/Transferetto-v2.0.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/Transferetto)

Stars**93**

Forks**18**

Open issues**0**

PowerShell Gallery downloads**14067470**

Release**v2.0.4**

Language: C# Updated: 2026-11-17

Documentation

Use Transferetto to upload or download files over FTP, FTPS, SFTP, or SCP from PowerShell.

Transferetto gives PowerShell a consistent way to move files across classic FTP, secure file transfer, and SSH-based copy lanes. The main decision is not “can PowerShell do this,” but “which protocol matches the server I am talking to.”

## Choose the lane

- Use FTP or FTPS when the remote endpoint is a classic hosting or partner system.
- Use SFTP when you want secure file transfer plus richer remote filesystem operations.
- Use SCP when the server exposes simple SSH copy semantics and you do not need the broader SFTP surface.

## Common pattern

Most file-transfer scripts follow the same shape:

1. Connect and keep the returned session object.
2. Optionally list or inspect the remote path first.
3. Upload or download one or more files.
4. Disconnect explicitly.

## Upload a file with SFTP

```powershell
Import-Module Transferetto

$sftpClient = Connect-SFTP -Server 'sftp.example.com' -Credential (Get-Credential)
Send-SFTPFile -SftpClient $sftpClient -LocalPath "$PSScriptRoot\Build\artifact.zip" -RemotePath '/incoming/artifact.zip' -AllowOverride
Disconnect-SFTP -SftpClient $sftpClient
```

## Download files with FTP

```powershell
Import-Module Transferetto

$ftpClient = Connect-FTP -Server 'ftp.example.com' -Credential (Get-Credential)
$files = Get-FTPList -Client $ftpClient -Path '/exports' | Where-Object Type -eq File
Receive-FTPFile -Client $ftpClient -RemoteFile $files -LocalPath "$PSScriptRoot\Download" -LocalExists Overwrite
Disconnect-FTP -Client $ftpClient
```

## Good habits

- Keep credentials outside the script source.
- Decide how overwrite behavior should work before running the transfer.
- Return or review transfer result objects when the job matters operationally.

## Related pages

- [Transfer folders with PowerShell](../transfer-folders-with-powershell/)
- [Connection and trust](../connection-and-trust/)
- [Upload files with SFTP example](/projects/transferetto/examples/upload-sftp-files/)
- [Upload files with FTPS example](/projects/transferetto/examples/upload-files-with-ftps/)
- [Download files with FTP example](/projects/transferetto/examples/download-files-with-ftp/)

<!-- PowerForge markdown artifact sha256:54B1C5FADC7B546E25DF5073AD25C9F89417E08F216AAC552847B9495C6FBE00 -->
