> For the complete documentation index, see [llms.txt](https://help.boomerang3.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.boomerang3.com/tools-for-sbc-products/file-transfer/windows-scp-command.md).

# Windows scp command

The Windows Server versions 2019 and later plus the latest builds of Windows 10 and Windows 11 include a built-in SSH server and client so it is not necessary to install WinSCP as there is a Windows scp command that may be used to transfer the files.

The scp command require SSH client to be enabled as described in [Windows ssh command](/tools-for-sbc-products/console-access/windows-ssh-command.md).

## Enabling scp command

### Windows Server 2019 and later

How to enable the `scp` command:

1. Install the OpenSSH Client
2. Open PowerShell as administrator.
3. Run the following command:

   ```sh
   PowerShell
   Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
   ```

### Windows 10 or 11

1. To check if it is enabled, go to System - Optional features.

<figure><img src="https://1446328526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTkNcqXMlEcaKT7pfTYLd%2Fuploads%2FGQ0nd2ii1JCFG1HhZjBy%2Fimage.png?alt=media&amp;token=87d55e3a-75ea-45f5-bbe0-c6f504be86b9" alt=""><figcaption></figcaption></figure>

## Using built-in scp command

1. Enter "cmd' into the Search box and select "Run as administrator".

<figure><img src="https://1446328526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTkNcqXMlEcaKT7pfTYLd%2Fuploads%2FUQtWa5bNIhQ9nkoBgnpy%2Fimage.png?alt=media&amp;token=df4d77fc-4c6a-4b66-808d-6abf74b35ff5" alt=""><figcaption></figcaption></figure>

2. In File Explorer navigate to the directory where you have the file(s) you want to copy to the device (C:\Temp and s2gw\_config.xml in the example).

<figure><img src="https://1446328526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTkNcqXMlEcaKT7pfTYLd%2Fuploads%2FpCtmOY2KzLpnhS2DFAA9%2Fimage.png?alt=media&amp;token=5570b581-9c1f-4f9a-9063-6bc05a44b3a6" alt=""><figcaption></figcaption></figure>

3. Click into the path field on top, enter 'cmd' there and press Enter key. This will open the command window.

<figure><img src="https://1446328526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTkNcqXMlEcaKT7pfTYLd%2Fuploads%2FFzTcfjMJazyh6tFOmp8h%2Fimage.png?alt=media&amp;token=2cc66488-fbd9-4459-9260-40af0129b680" alt=""><figcaption></figcaption></figure>

4. Enter&#x20;

```
scp [options] source_file user@hostname:destination_path
```

#### Example

For S2GW with IP address 192.168.61.29 to transfer a file called s2gw\_config.xml to a directory /home/pi/Documents use:

*scp s2gw\_config.xml pi\@192.168.61.29:/home/pi/Documents*

<figure><img src="https://1446328526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTkNcqXMlEcaKT7pfTYLd%2Fuploads%2FZJ2HJXlzRyd07Co92dXA%2Fimage.png?alt=media&amp;token=6bc760b7-dd0a-4a39-b92d-b90ca8e68576" alt=""><figcaption></figcaption></figure>

5. There will be a prompt for password for the pi user (rasp4icu).

<figure><img src="https://1446328526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTkNcqXMlEcaKT7pfTYLd%2Fuploads%2FuiNQj6Tc7F6YXmwAxKov%2Fimage.png?alt=media&amp;token=b45f557f-8022-48d7-a0ea-2e47bcacaaec" alt=""><figcaption></figcaption></figure>

6. Enter the password.
7. The file is copied.

<figure><img src="https://1446328526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTkNcqXMlEcaKT7pfTYLd%2Fuploads%2FEAlRTrS8KViUkjHtb4IT%2Fimage.png?alt=media&amp;token=dc7d0b64-6f69-478c-8ea9-7617d6af9358" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.boomerang3.com/tools-for-sbc-products/file-transfer/windows-scp-command.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
