> 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="/files/4UHqVmnctnsS7MbcnOKy" alt=""><figcaption></figcaption></figure>

## Using built-in scp command

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

<figure><img src="/files/iLkNB7yQD98WHre9uZ5d" 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="/files/RqxNexyspAwY6DgAW0m7" 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="/files/xD9eFemdbOQdvbtAEGus" 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="/files/p3ZKOJ7ghPvYHgVzoqYM" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/dRwEZXetyVSHDDo45ICy" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/NHlLXYmD4p3E9UaIwpG2" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
