Stay organized with collections Save and categorize content based on your preferences.
Windows
To transfer files to Compute Engine virtual machine (VM) instances, different options are available depending on your workstation OS and the target instance OS.
Transferring files through Cloud StorageCloud Storage buckets can be used as a transfer point between you and your VMs. You can use a web browser, the Google Cloud CLI, or a programming language to transfer files between Cloud Storage and Compute Engine VMs.
Different credential types can be used for the upload and download step to best suit your needs:
To use Cloud Storage to transfer files between a computer and a VM, do the following:
If you need to transfer files in the other direction, you can reverse the process. Ensure that the account uploading the file has write access to the bucket.
Transfer files using the Google Cloud CLI Note: Transferring files using the Google Cloud CLI is only supported on VMs running Windows Server 2019 and later.Google Cloud CLI provides a Secure Copy Protocol (SCP) file transfer utility over an established SSH connection.
To transfer files using SCP, do the following:
22
are permitted; if not create a SSH firewall rule.gcloud compute scp
command to transfer the files to the destination machine.The following example copies a file from your workstation to the home directory of the VM:
gcloud compute scp LOCAL_FILE_PATH VM_NAME:REMOTE_DIR
Replace the following:
LOCAL_FILE_PATH
: the path to the file on your machineVM_NAME
: the name of your VMREMOTE_DIR
: a directory on the remote machineYou can also copy files and directories in reverse from the remote machine. The following example recursively copies a directory from the source to the destination:
gcloud compute scp --recurse VM_NAME:REMOTE_DIR LOCAL_FILE_PATH
For more information, see the gcloud compute scp
reference documentation.
Many first party Microsoft RDP Clients support connecting local storage to a remote Windows VM; however this is not supported on all clients.
Follow the instructions for the operating system of the device you're transferring files to or from:
WindowsTransfer files through the built-in Remote Desktop Connection app (%systemroot%/system32/mstsc.exe
) by doing the following:
Transfer files through the Remote Desktop Microsoft RDP Client for macOS by doing the following:
Transfer files through the Remote Desktop app from Microsoft.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["Cloud Storage, the Google Cloud CLI, and the Windows RDP client are the main methods for transferring files to Compute Engine Windows VM instances, with the availability depending on the workstation's OS."],["Cloud Storage can serve as an intermediary for file transfers between your computer and a VM, and it requires setting up a bucket with the correct IAM permissions for uploading and downloading files."],["The Google Cloud CLI facilitates file transfers via SCP over an SSH connection, allowing you to copy files to and from your VM using `gcloud compute scp` command, and is only supported for VMs running Windows Server 2019 or later."],["The Windows RDP client supports mounting local storage to a remote Windows VM for file transfer, through the Remote Desktop Connection app, macOS RDP client or the Android app, and steps vary slightly depending on the client."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4