2017-02-17 41 views
0

我試圖通過批處理文件禁用遠程協助。但是下面的代碼不起作用。這個命令有什麼問題嗎?如何使用批處理文件禁用遠程協助

@echo off 
@echo Disable remote assistance 
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v "fAllowToGetHelp" /t REG_DWORD /d "0" /f 
pause 
+1

當我切換它正在編輯的關鍵系統屬性中的選項: 'HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Remote Assistance' – Squashman

+2

這是應該通過[組策略](https://technet.microsoft.com/en-us/library/bb456993.aspx)完成的事情比黑客入侵未記錄的註冊表項。 –

+0

謝謝HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Remote Assistance工程 – Matt

回答

0

當我切換系統屬性是編輯鍵的選項:HKEY_LOCAL_MACHINE \系統\ CurrentControlSet \控制\遠程協助