Send files to Windows Server
Wormhole is a command-line utility that can send secure, encrypted files and messages over a network. It is an excellent tool for quickly sending files between computers and servers.
In this guide, we’ll show you how to install Wormhole on your Windows server system, and how to use it too. To start, ensure you have the ability to run scripts in PowerShell. If you do not, you will need to adjust your Windows settings beforehand.
How to install Chocolatey on Windows Server
Wormhole is a command-line application, and it is supported on Windows Server. However, setting it up manually isn’t exactly the easiest thing in the world. Thankfully, there is a better way: Chocolatey.
What is Chocolatey? It’s a package management tool for Windows and Windows Server, much like the package management tools you can find on Linux operating systems like Ubuntu, Fedora, etc. Chocolatey makes it easier to deploy software on your Windows Server system.
To get Chocolatey working on your Windows Server, start by opening up a PowerShell window on the Windows Server desktop. Once it is open, use the following command to install the software on your system.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Chocolatey shouldn’t take too long to install on your system. When the software is set up on your system, you will need to close the PowerShell window and re-open it to begin using the Chocolatey package manager tool.
Once you’ve re-opened the PowerShell window, run the choco
command to confirm that the software is working correctly. If you don’t get an output at all, you will need to re-install the Chocolatey package manager on your Windows Server system.
How to install Wormhole on Windows Server
The Wormhole app can easily be installed on your Windows Server system with the choco install
command since the Chocolatey package manager is set up on your system. To install Wormhole, open up a PowerShell window and execute the following command.
choco install magic-wormhole
Once you enter this command above, the Chocolatey package management tool will display a message. This message says:
Installing the following packages:
magic-wormhole
By installing, you accept licenses for the packages.
Progress: Downloading magic-wormhole.portable 0.12.0... 100%
magic-wormhole.portable v0.12.0 [Approved]
magic-wormhole.portable package files install completed. Performing other installation steps.
The package magic-wormhole.portable wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint):
Using the keyboard, press the “A” button to confirm. When you press the “A” button, it’ll begin downloading Wormhole and installing everything you need to run it on your Windows server system.
When the installation is complete, you can check to see if Wormhole is running correctly by executing the wormhole
command. If it’s successfully installed, you’ll see a “help” output. This “help” output will display everything that the program can do. Study it, to learn about all of the features that Wormhole has to offer.
wormhole
How to use Wormhole to send files to Windows Server
To use the Wormhole app to send files from another computer to a Windows server, do the following. First, open up a PowerShell window on the Windows server system. Then, open up a terminal (Linux/Mac) or PowerShell window (Windows PC/server) on the sending system.
On the sending system, find the file you wish to send. For example, if the file you are trying to send is in the “Downloads” folder, use the cd
command to enter that folder. If you’re on Linux or Mac, that might look like this:
cd ~/Downloads
On Windows, it might look like this:
cd %userprofile%\Downloads
Once inside of the directory, run the ls
command to view the contents of the folder. You can then find the file you wish to send to the Windows server system, and send it with the following command.
wormhole send my-file-to-send
After writing in the command above, Wormhole will generate a “receive” command that you can execute to download the file from the sender to the Windows Server system.
How to use Wormhole to receive files from Windows Server
If you wish to send files from the Windows server to another computer, follow the steps outlined above. Except, run the wormhole send
command on the Windows server and the wormhole receive
command on the other computer.