設定壓縮 RemoteFX 資料 的登錄值 MaxCompressionLevel電腦HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- 原則 ID
- TS_SERVER_COMPRESSOR
- 適用範圍
- 電腦設定
- 支援的作業系統
- 至少需要 Windows Vista 含 Service Pack 1
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › 遠端桌面服務 › 遠端桌面工作階段主機 › 遠端工作階段環境
登錄
MaxCompressionLevel
REG_DWORD電腦- 啟用時的值
- 取決於選項值
- 元素
- RDP 壓縮演算法:
| 項目 | 儲存的值 |
|---|---|
| 最佳化以使用較少的記憶體 | 1 |
| 最佳化以使用較少的網路頻寬 | 3 |
| 平衡記憶體與網路頻寬 | 2 |
| 不使用 RDP 壓縮演算法 | 0 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services] ; 選項 (只使用其中一個) ; 最佳化以使用較少的記憶體 "MaxCompressionLevel"=dword:00000001 ; 最佳化以使用較少的網路頻寬 "MaxCompressionLevel"=dword:00000003 ; 平衡記憶體與網路頻寬 "MaxCompressionLevel"=dword:00000002 ; 不使用 RDP 壓縮演算法 "MaxCompressionLevel"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 最佳化以使用較少的記憶體 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxCompressionLevel" /t REG_DWORD /d 1 /f :: 最佳化以使用較少的網路頻寬 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxCompressionLevel" /t REG_DWORD /d 3 /f :: 平衡記憶體與網路頻寬 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxCompressionLevel" /t REG_DWORD /d 2 /f :: 不使用 RDP 壓縮演算法 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "MaxCompressionLevel" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null # 選項 (只使用其中一個) # 最佳化以使用較少的記憶體 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxCompressionLevel' -PropertyType DWord -Value 1 -Force | Out-Null # 最佳化以使用較少的網路頻寬 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxCompressionLevel' -PropertyType DWord -Value 3 -Force | Out-Null # 平衡記憶體與網路頻寬 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxCompressionLevel' -PropertyType DWord -Value 2 -Force | Out-Null # 不使用 RDP 壓縮演算法 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'MaxCompressionLevel' -PropertyType DWord -Value 0 -Force | Out-Null