為遠端桌面服務使用者工作階段的遠端控制設定規則 的登錄值 Shadow (HKCU Terminal Services)使用者HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- 原則 ID
- TS_RemoteControl_1
- 適用範圍
- 使用者設定
- 支援的作業系統
- Windows Server 2008 R2、Windows Server 2008、Windows Server 2003、Windows 7、Windows Vista,以及 Windows XP
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › 遠端桌面服務 › 遠端桌面工作階段主機 › 連線
登錄
Shadow
REG_DWORD使用者- 啟用時的值
- 取決於選項值
- 元素
- 選項:
| 項目 | 儲存的值 |
|---|---|
| 不允許遠端控制 | 0 |
| 使用者授予 [完全控制] 權限 | 1 |
| 不需使用者授與即可完全控制 | 2 |
| 使用者授予 [檢視工作階段] 權限 | 3 |
| 不需使用者授與權限即可檢視工作階段 | 4 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services] ; 選項 (只使用其中一個) ; 不允許遠端控制 "Shadow"=dword:00000000 ; 使用者授予 [完全控制] 權限 "Shadow"=dword:00000001 ; 不需使用者授與即可完全控制 "Shadow"=dword:00000002 ; 使用者授予 [檢視工作階段] 權限 "Shadow"=dword:00000003 ; 不需使用者授與權限即可檢視工作階段 "Shadow"=dword:00000004
CMD
:: 選項 (只使用其中一個) :: 不允許遠端控制 reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "Shadow" /t REG_DWORD /d 0 /f :: 使用者授予 [完全控制] 權限 reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "Shadow" /t REG_DWORD /d 1 /f :: 不需使用者授與即可完全控制 reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "Shadow" /t REG_DWORD /d 2 /f :: 使用者授予 [檢視工作階段] 權限 reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "Shadow" /t REG_DWORD /d 3 /f :: 不需使用者授與權限即可檢視工作階段 reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "Shadow" /t REG_DWORD /d 4 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null # 選項 (只使用其中一個) # 不允許遠端控制 New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'Shadow' -PropertyType DWord -Value 0 -Force | Out-Null # 使用者授予 [完全控制] 權限 New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'Shadow' -PropertyType DWord -Value 1 -Force | Out-Null # 不需使用者授與即可完全控制 New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'Shadow' -PropertyType DWord -Value 2 -Force | Out-Null # 使用者授予 [檢視工作階段] 權限 New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'Shadow' -PropertyType DWord -Value 3 -Force | Out-Null # 不需使用者授與權限即可檢視工作階段 New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'Shadow' -PropertyType DWord -Value 4 -Force | Out-Null