2017-08-26 43 views

回答

0

不要使用VBScript來做到這一點....使用GPO ..因爲如果有人禁用腳本的安全控制被打破。

如果您正在編輯爲單個用戶/單機...

這可能是快寫註冊表VB腳本或批處理文件與您的控制,而不是使用GPO爲你所不懂的每一個用戶的不想使用它。如果系統不存在於Windows密鑰中,請創建系統密鑰。警告,你有其他控制措施,不會阻止用大約5分鐘的Google搜索禁用此功能。

reg add "HKCU\Software\Policies\Microsoft\Windows\System" 
reg add "HKCU\Software\Policies\Microsoft\Windows\System" /t REG_DWORD /v DisableCmd /d 2 

使用Gpedit或OU級別分配的策略對於非管理員

User configuration\Administrative Templates\System\Prevent access to the command prompt 

其他政策考慮增加對非管理員用戶羣體。

User configuration\Administrative Templates\System\Prevent access to registry editing tools 
User configuration\Administrative Templates\System\Don't run specified Windows Applications 
相關問題