Windows 远程桌面优化

Windows 远程桌面优化

提升帧率

  1. 打开 被控主机 上的 命令提示符win + R 打开运行,输入 cmd
  2. 输入以下内容并回车
1
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations" /v "DWMFRAMEINTERVAL" /t REG_DWORD /d "15" /f

提示:

  • 15: 对应 60 帧
  • 30: 对应 30 帧
  • 8: 对应 120 帧

开启显卡加速以及 H264 编码

组策略开启

  1. 打开 被控主机 上的 组策略win + R 打开运行,输入 gpedit.msc
  2. 打开 计算机配置 -> 管理模板 -> Windows 组件 -> 远程桌面服务 -> 远程桌面会话主机 -> 远程会话环境
  3. 点击 将硬件图形适配器应用于所有远程桌面服务会话,点击 已启用
  4. 点击 为远程桌面连接设置 H.264/AVC 444 图形模式的优先级,点击 已启用(不是必要)
  5. 点击 配置远程桌面连接的 H.264/AVC 硬件编码,点击 已启用
  6. 点击 为 RemoteApp 使用高级 RemoteFX 图形,点击 已启用

注册表开启

  1. 打开 被控主机 上的 命令提示符win + R 打开运行,输入 cmd
  2. 输入以下内容并回车
1
2
3
4
5
6
7
8
9
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "SelectTransport" /t REG_DWORD /d "0" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fEnableVirtualizedGraphics" /t REG_DWORD /d "1" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fEnableRemoteFXAdvancedRemoteApp" /t REG_DWORD /d "1" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxCompressionLevel" /t REG_DWORD /d "2" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "VisualExperiencePolicy" /t REG_DWORD /d "1" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "GraphicsProfile" /t REG_DWORD /d "2" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "bEnumerateHWBeforeSW" /t REG_DWORD /d "1" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "AVC444ModePreferred" /t REG_DWORD /d "1" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "AVCHardwareEncodePreferred" /t REG_DWORD /d "1" /f

开启 RemoteFX USB 重定向

RDP 默认支持共享存储设备,我们可以让它共享 USB 设备(该设置在控制端设置)。

  1. 打开 被控主机 上的 组策略win + R 打开运行,输入 gpedit.msc
  2. 打开 计算机配置 -> 管理模板 -> Windows 组件 -> 远程桌面服务 -> 远程桌面会话客户端
  3. 点击 RemoteFX USB 设备重定向,点击 已启用

Windows 远程桌面优化
http://example.com/2025/08/25/Windows-远程桌面优化/
作者
Fir
发布于
2025年8月25日
许可协议