xpipe/lang/proc/texts/rdpFileAllowListCheck_zh.md

37 lines
1.5 KiB
Markdown
Raw Normal View History

2024-04-19 15:15:57 +12:00
# RDP ??????
???? XPipe ??? RDP ?????????????????????????????????? RDP ??????????????????????????????????
## RDP ????
RDP ??????????????????????????????????????????????????????????????????????????????
???????????? `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList ?????????`?
### ????????
??????????????? XPipe ?????????????????? PowerShell ?????????????`Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList' -Name "fDisabledAllowList" -Value 1`?
### ?????????
????????????????????????????????? XPipe ??????????
? `TSAppAllowList` ? `Applications` ???????????????????????????? "Applications "??????????????????????`??`?`??`?`?????`??????????? PowerShell ???????
<code>`</code
$appName="???"
$appPath="C:\Windows\System32\notepad.exe"?
$regKey="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList\Applications"
New-item -Path "$regKey\$appName"
New-ItemProperty -Path "$regKey\$appName" -Name "Name" -Value "$appName" -Force
New-ItemProperty -Path "$regKey\$appName" -Name "Path" -Value "$appPath" -Force
New-ItemProperty -Path "$regKey\$appName" -Name "CommandLineSetting" -Value "1" -PropertyType DWord -Force
<??>`</??
??????? XPipe ??????????????????????? `C:\Windows\System32\cmd.exe` ?
### ??????
???????????????????????? RDP ???????????????????????????????????????????????????????????????? XPipe ????????????????????????? XPipe ???????????????????