One-Click Windows RDP Port Changer Script 🖥️
Managing a Windows VPS often requires securing RDP (Remote Desktop Protocol) access. One of the most effective and simplest ways to harden your Windows Server is to change the default RDP port (3389). But doing it manually via the registry and firewall can be tedious and risky.
That’s why we at Hosteons created an open-source, one-click PowerShell script that simplifies the process.
👉 GitHub Repo: Windows RDP Port Changer Script
✅ Features
- Changes RDP Port via Windows Registry
- Updates Windows Firewall to allow the new port
- Enables RDP if it’s currently disabled
- Fully open-source and free under the MIT License
- Supports Windows Server 2012/2016/2019/2022
📦 How to Use
- Login to your Windows VPS as Administrator.
- Open PowerShell.
- Run the script directly:
iwr -useb https://raw.githubusercontent.com/hosteons/Windows-RDP-Port-Changer-Script/main/rdp_port_changer.ps1 | iex
- Enter your desired RDP port when prompted.
⚠️ Important: Make sure your port is not blocked by external firewalls (such as cloud provider rules). Also, ensure you have console/VNC access in case the new port is misconfigured.
🤖 Automation Friendly
This script can be integrated into automation flows for server provisioning or batch management. Perfect for sysadmins managing multiple Windows VPS instances.
🔐 Why Change Your RDP Port?
- Reduces brute-force attacks from bots scanning port 3389
- Hides your RDP service from default port scanners
- Adds an extra layer of obscurity in your defense
👨💻 Contribute or Report Issues
This is an open-source script. Feel free to fork, improve, or report issues on GitHub:
👉 https://github.com/hosteons/Windows-RDP-Port-Changer-Script
📣 About Hosteons
Hosteons is a VPS and dedicated server provider offering services in multiple global locations. We’re committed to open-source and providing useful automation tools for system administrators and developers.