Windows 桌面服务器配置教程:随机 RDP 端口 & 手动系统更新
源文GitHub:https://github.com/idc-net/Windows-Server-Toolkit 适用:Windows Server 2016 / 2019 / 2022 / 2025 · Windows 10 / 11 · PowerShell 5.1+ 一、前言 Windows 远程桌面(RDP)默认监听 3389 端口,长期暴露在公网会被自动化扫描工具持续探测和爆破。本教程使用 Windows Server Toolkit 提供的 PowerShell 脚本,完成两项配置: 将 RDP 端口从 3389 改为随机端口,自动处理防火墙规则。 关闭系统自动更新,改为手动掌控更新时机,防止服务器在业务时段意外重启。 工具列表 文件名 适用场景 功能 modify_rdp_port.ps1 所有场景 修改 RDP 端口、启用 RDP、强制 NLA、自动更新防火墙规则 disable_auto_update_desktop.ps1 Windows Server 当桌面 全面封锁自动更新,手动完全掌控 disable_auto_update_web.ps1 网站 / 应用服务器 […]