筆記本禁用鍵盤命令符_如何在Windows中禁用命令提示符和“運行”程序

筆記本禁用鍵盤命令符

筆記本禁用鍵盤命令符

top

The Command Prompt and the Run program?are pretty powerful tools in the Windows world. If you’d rather specific users on a computer not have access to them, it’s not too hard to do.

命令提示符和運行程序是Windows世界中非常強大的工具。 如果您希望計算機上的特定用戶沒有訪問權限,那么這樣做就不太困難了。

Windows makes it pretty easy to open the Command Prompt, and there are all kinds of useful things you can do with it. It can also be a dangerous tool in the hands of the inexperienced, as it exposes a lot of power and it’s?sometimes difficult to understand the full ramifications of a command. The Run program?is similarly dangerous, as you can use it to perform many of the same commands you would at the Command Prompt. There are all kinds of reasons you might want to disable these features for certain users on a computer. Maybe you’ve got kids who share a family computer or you let guests use?your computer when they stay with you. Or perhaps you’re running a business computer as a kiosk for customers and you need to lock it down. Whatever your reason, we’ve got the fix for you.

Windows使打開命令提示符變得非常容易,并且您可以使用它進行各種有用的操作。 對于經驗不足的人來說,它也可能是一個危險的工具,因為它暴露了很多功能,有時很難理解命令的全部后果。 運行程序同樣危險,因為您可以使用它執行許多與命令提示符相同的命令。 出于各種原因,您可能想為計算機上的某些用戶禁用這些功能。 也許您有共享一臺家庭計算機的孩子,或者讓客人在和您在一起時使用您的計算機。 或者,也許您正在將商務計算機作為供客戶使用的信息亭,則需要將其鎖定。 無論您是什么原因,我們都會為您提供解決方案。

家庭用戶:通過編輯注冊表來禁用命令提示符并運行程序 (Home Users: Disable the Command Prompt and Run Program?by Editing the Registry)

If you have a?Home edition of Windows, you will have to edit the Windows Registry to make these changes. You can also do it this way if you have Windows Pro or Enterprise, but just feel more comfortable working in the Registry. (If you have Pro or Enterprise, though, we recommend using the easier Local Group Policy Editor, as described in the next section.) Keep in mind, though, that when editing the Registry, you’ll need to be logged on as the user for which you want to disable shutdown.

如果您有Windows的家庭版,則必須編輯Windows注冊表才能進行這些更改。 如果您擁有Windows Pro或Enterprise,也可以通過這種方式進行操作,但是在注冊表中工作會更自在。 (但是,如果您具有Pro或Enterprise,我們建議使用更簡單的“本地組策略編輯器”,如下一節所述。)但是請記住,在編輯注冊表時,您需要以您要禁用關機的用戶。

Standard warning: Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable. This is a pretty simple hack and as long as you stick to the instructions, you shouldn’t have any problems. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely?back up the Registry?(and your computer!) before making changes.

標準警告:注冊表編輯器是一個功能強大的工具,濫用它會使您的系統不穩定甚至無法運行。 這是一個非常簡單的技巧,只要您按照說明進行操作,就不會有任何問題。 也就是說,如果您以前從未使用過它,請在開始之前考慮閱讀有關如何使用注冊表編輯器的信息。 并在進行更改之前一定要備份注冊表(和您的計算機!)。

To get started, log in as the user for whom you want to make these changes. Open the Registry Editor by hitting Start and typing “regedit.” Press Enter to open Registry Editor?and give it permission to make changes to your PC. First, you’re going to disable the Command Prompt. In the Registry Editor, use the left sidebar?to navigate to the following key:

首先,以您要對其進行更改的用戶身份登錄。 通過單擊開始并鍵入“ regedit”來打開注冊表編輯器。 按Enter鍵打開注冊表編輯器,并授予其對PC進行更改的權限。 首先,您將禁用命令提示符。 在注冊表編輯器中,使用左側邊欄導航至以下鍵:

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\System
cmd_reg1

Next, you’re going to create a new value in that key. Right-click the System icon and choose New > DWORD (32-bit) Value. Name the new value DisableCMD .

接下來,您將在該鍵中創建一個新值。 右鍵單擊“系統”圖標,然后選擇“新建”>“ DWORD(32位)值”。 將新值命名為DisableCMD

cmd_reg2

Now, you’re going to modify?that value. Double-click the new DisableCMD value and set the value to 1 in the “Value data” box and click OK.

現在,您將修改該值。 雙擊新的DisableCMD值,然后在“值數據”框中將其值設置為1 ,然后單擊“確定”。

cmd_reg3

Now that the Command Prompt itself is disabled, your next step is to disable the Run program. In Registry Editor, navigate to the following key:

現在,命令提示符本身已被禁用,下一步是禁用運行程序。 在注冊表編輯器中,導航到以下項:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
cmd_reg4

Right-click the Explorer?icon and choose New > DWORD (32-bit) Value. Name the new value NoRun .

右鍵單擊“資源管理器”圖標,然后選擇“新建”>“ DWORD(32位)值”。 將新值NoRun

cmd_reg5

Double-click the new NoRun value and set the “Value data” box to 1 .

雙擊新的NoRun值,并將“值數據”框設置為1

cmd_reg6

Click OK, exit Registry Editor, restart your computer, and log in as the user for whom you made the change. That user should no longer have access to the Run program?or the Command Prompt. If they try to access the Run command while it’s disabled they will see the following error message.

單擊“確定”,退出注冊表編輯器,重新啟動計算機,然后以進行更改的用戶身份登錄。 該用戶將不再有權訪問運行程序或命令提示符。 如果他們在禁用運行命令的情況下嘗試訪問運行命令,則會看到以下錯誤消息。

shutdown_restrict

If you want to re-enable the Command Prompt or Run program, just log back in as that user, open up the Registry, and set either value back to 0.

如果要重新啟用命令提示符或運行程序,只需以該用戶身份重新登錄,打開注冊表,然后將其中一個值都設置為0。

下載我們的一鍵式注冊表黑客 (Download Our One-Click Registry Hacks)

cmd_hacks

If you don’t feel like diving into the Registry yourself, we’ve created some?downloadable registry hacks you can use. There are hacks to disable and re-enable both the Command Prompt and Run program. All four hacks are included in the following ZIP file. Double-click the one you want to use and click through the prompts. When you’ve applied the hacks you want, restart your computer

如果您不想自己進入注冊表,我們已經創建了一些可下載的注冊表黑客,供您使用。 有一些技巧可以禁用和重新啟用命令提示符和運行程序。 以下ZIP文件中包含所有四個hack。 雙擊您要使用的一個,然后單擊提示。 應用所需的技巧后,請重新啟動計算機

Command Prompt and Run Hacks

命令提示符和運行技巧

These hacks are really just the applicable?keys, stripped down to the values we talked about in the previous section and then exported to a .REG file. Running either of the enable hacks changes the that particular value to 1. Running either of the enable hacks sets that particular value back to 0. ?And if you enjoy fiddling with the Registry, it’s worth taking the time to learn how to make your own Registry hacks.

這些hack實際上只是適用的密鑰,被精簡為上一節中討論的值,然后導出到.REG文件。 運行任何一個使能hack都會將該值更改為1。運行這兩個使能hack都會將該值恢復為0。如果您喜歡注冊表,那么花點時間學習如何制作自己的注冊表是值得的駭客。

專業版和企業版用戶:使用本地組策略編輯器禁用命令提示符并運行程序 (Pro and Enterprise Users: Disable the Command Prompt and Run Program?with Local Group Policy Editor)

If you’re using Windows Pro or Enterprise, the easiest way to disable the Command Prompt and Run program?is by using the Local Group Policy Editor. It’s a pretty powerful tool, so if you’ve never used it before, it’s worth taking some time to learn what it can do. Also, if you’re on a company network, do everyone a favor and check with your admin first. If your work computer is part of a domain, it’s also likely that it’s part of a domain group policy that will supersede the local group policy, anyway. Also, since you’ll be creating?policy tweaks for specific users, you’ll need to take the extra step of creating a policy console geared toward those users.

如果您使用的是Windows Pro或Enterprise,則禁用命令提示符和運行程序的最簡單方法是使用本地組策略編輯器。 這是一個非常強大的工具,因此,如果您以前從未使用過它,那么值得花一些時間來學習它可以做什么。 另外,如果您在公司網絡中,請給所有人一個幫助,并首先與您的管理員聯系。 如果您的工作計算機是域的一部分,則它也很可能是域組策略的一部分,無論如何,該組策略將取代本地組策略。 另外,由于您將為特定用戶創建策略調整,因此您需要采取額外的步驟來創建針對這些用戶的策略控制臺。

In Windows Pro or Enterprise, find the MSC file that you made for the users to whom you want to apply the policy, double-click to open it, and click Yes to allow it to make changes. In the Group Policy window for those users, in the left-hand pane, drill down to User?Configuration > Administrative Templates?> System. On the right, find the “Prevent access to the command prompt” item and double-click it.

在Windows Pro或Enterprise中,找到為要應用該策略的用戶制作的MSC文件,雙擊以將其打開,然后單擊“是”以允許其進行更改。 在這些用戶的“組策略”窗口的左側窗格中,向下鉆取到“用戶配置”>“管理模板”>“系統”。 在右側,找到“防止訪問命令提示符”項,然后雙擊它。

cmd_gp1

Set the policy to Enabled and then click OK. Note also that there is a drop-down menu that lets you also disable Command Prompt scripting. This removes the ability for the user to run scripts and batch files. If you’re really trying to lock down the command line ability from a savvy user, go ahead and turn this setting on. If you’re just trying to remove easy access from the Command Prompt (or if you need Windows to still be able to run logoff, logon, or other batch files), leave the setting off.

將策略設置為“已啟用”,然后單擊“確定”。 還要注意,有一個下拉菜單,您還可以禁用命令提示符腳本。 這使用戶無法運行腳本和批處理文件。 如果您真的想鎖定精明的用戶的命令行功能,請繼續并啟用此設置。 如果您只是想從命令提示符中刪除方便的訪問權限(或者如果您需要Windows仍然能夠運行注銷,登錄或其他批處理文件),請取消設置。

cmd_gp2

Next, you’re going to disable the ability to access the Run program. Back in the Group Policy window for those users, find?User?Configuration > Administrative Templates?> Start Menu and Taskbar. On the right, find the “Remove Run from Start Menu” item and double-click it.

接下來,您將禁用訪問“運行”程序的功能。 返回這些用戶的“組策略”窗口中,找到“用戶配置”>“管理模板”>“開始”菜單和任務欄。 在右側,找到“從開始菜單中刪除運行”項,然后雙擊它。

cmd_gp3

Set the policy to Enabled and then click OK.

將策略設置為“已啟用”,然后單擊“確定”。

cmd_gp4

You can now exit the Group Policy Editor. If you want to test the new settings, log off?and then log back on as the user (or a member of the user group) for which you made changes. If you want to re-enable the Command Prompt or Run program, just use the editor to set the items back Not Configured (or Disabled).

現在,您可以退出組策略編輯器。 如果要測試新設置,請注銷,然后以對其進行更改的用戶(或用戶組成員)的身份重新登錄。 如果要重新啟用命令提示符或運行程序,只需使用編輯器將項目設置回“未配置”(或“禁用”)即可。

And that’s it. It takes a little doing, but it’s not too hard to lock down some of these more powerful tools from users.

就是這樣。 這需要花點功夫,但是鎖定用戶中一些更強大的工具并不難。

翻譯自: https://www.howtogeek.com/249007/how-to-disable-the-command-prompt-and-run-program-in-windows/

筆記本禁用鍵盤命令符

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/280026.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/280026.shtml
英文地址,請注明出處:http://en.pswp.cn/news/280026.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

MySQL Date 函數

2019獨角獸企業重金招聘Python工程師標準>>> MySQL 中最重要的內建日期函數: NOW() 返回當前的日期和時間 CURDATE() 返回當前的日期 CURTIME() 返回當前的時間 DATE() 提取日期或日期/時間表達式的日期部分 EXTRACT() 返回日期/時間按的…

Android之Window與WindowManager

Window表示一個窗口的概念,在日常開發中直接接觸Window的機會并不多,但卻會經常用到Window,activity、toast、dialog、PopupWindow、狀態欄等都是Window。在Android中Window是個抽象類,并且僅有一個實現類PhoneWindow。 1、Window…

C# WPF This用法詳解(經典)

概述this在C#中有多種用法,也比較常見,這節主要針對它常用的四種用法展開講解.用法1:構造函數串聯執行;用法2:通過this區分傳參和類中全局的定義;用法3:方法擴展類;用法4:將對象作為參數傳遞;代碼實例using System.Text;namespace Caliburn.Micro.Hello.…

前端node 和vue開發之環境搭建

下載nvm nodejs 的快捷鍵是配置后自動生成的 nvm 的 setting.txt配置 root: C:\dev\nvmpath: C:\dev\nodejsarch: 32proxy: root指向 nvm.exeroot: C:\dev\nvmpath: C:\dev\nodejs 配置環境變量 變量名 變量值 GIT_HOME C:\dev…

如何從特定位置開始分享YouTube視頻

Tech tutorials that start with 3 minutes of “hey guys what’s up” are the worst. Get to the point! Here’s how you can bypass that nonsense when sharing a video with your friends. 最糟糕的是從3分鐘的“嗨,大家好起來”開始的技術教程。 講到重點&a…

解決git提交問題error: The requested URL returned error: 403 Forbidden while accessing

2019獨角獸企業重金招聘Python工程師標準>>> git提交代碼時,出現這個錯誤“error: The requested URL returned error: 403 Forbidden while accessing https” 解決方法: 編輯.git目錄下的config文件即可。 vim .git/config [core] …

基于.NetCore開發博客項目 StarBlog - (24) 統一接口數據返回格式

1前言開發接口,是給客戶端(Web前端、App)用的,前面說的RESTFul,是接口的規范,有了統一的接口風格,客戶端開發人員在訪問后端功能的時候能更快找到需要的接口,能寫出可維護性更高的代…

如何將C# 7類庫升級到C# 8?使用可空引用類型

這篇文章將介紹將C# 7類庫升級到C# 8(支持可空引用類型)的一個案例。本案例中使用的項目Tortuga Anchor由一組MVVM風格的基類、反射代碼和各種實用程序函數組成。之所以選擇這個項目,是因為它很小,并且同時包含了慣用和不常用的C#…

android 設備名稱_如何更改您的Android TV的設備名稱

android 設備名稱Android TV is Google’s attempt at taking over the living room, and with some units being available for under $99, it’s not unheard of for users to have more than one box. The problem is, when multiple devices identify themselves identical…

AD-查找符合指定條件的用戶Get-User

以下服務器為Exchange 2010一、使用 Get-User 命令查找部門為IT的用戶Get-User -ResultSize Unlimited | ? { $_.Department -Eq "IT" } | ft Name,Department二、查找注釋為多行內容的指定用戶如下圖:注釋Notes信息為多行要使用 match 和 (?*) 來做匹配…

目標檢測算法之Fast R-CNN算法詳解

在介紹Fast R-CNN之前我們先介紹一下SPP Net 一、SPP Net SPP:Spatial Pyramid Pooling(空間金字塔池化) 眾所周知,CNN一般都含有卷積部分和全連接部分,其中,卷積層不需要固定尺寸的圖像,而全連…

RGB-D(深度圖像) 圖像深度

RGB-D(深度圖像) 深度圖像 普通的RGB三通道彩色圖像 Depth Map 在3D計算機圖形中,Depth Map(深度圖)是包含與視點的場景對象的表面的距離有關的信息的圖像或圖像通道。其中,Depth Map 類似于灰度圖像&…

WPF-21 基于MVVM員工管理-01

接下來我們通過兩節課程使用MVVM來開發一個簡單的Demo,首先我們創建一個項目名稱WPF-22-MVVM-Demo,目錄結構如下:我們在Models文件下創建Employee類并讓該類實現INotifyPropertyChanged接口,該類中定義編號、姓名和角色三個基本屬…

qt 蘋果應用程序_什么是蘋果的電視應用程序,您應該使用它嗎?

qt 蘋果應用程序Apple’s TV app, which recently appeared on iOS devices and Apple TV, is meant to help users discover and watch shows across an increasingly expanding lineup of television channels, as well as iTunes movies and shows, in one central app. App…

細說flush、ob_flush的區別

ob_flush/flush在手冊中的描述, 都是刷新輸出緩沖區, 并且還需要配套使用, 所以會導致很多人迷惑… 其實, 他們倆的操作對象不同, 有些情況下, flush根本不做什么事情.. ob_*系列函數, 是操作PHP本身的輸出緩沖區. 所以, ob_flush是刷新PHP自身的緩沖區. 而flush, 嚴格來講, 這…

關于jHipster框架在構建中的出現的error修復

jhipster The JDL object and the database type are both mandatory.這個錯誤應該是在構建基于jHipster的spring-cloud項目中經常遇到的,因為這個在這個過程中會讀取.yo-rc文件,之后生成相關的.json文件,再之后生成相關的.java文件&#xff…

protobuf編碼

proto2Protocol Buffers 是一種輕便高效的結構化數據存儲格式,可以用于結構化數據序列化,適合做數據存儲或 RPC 數據交換格式。可用于通訊協議、數據存儲等領域的語言無關、平臺無關、可擴展的序列化結構數據格式。 字段規則 required: 字段必須存在opti…

定制.NET 6.0的Middleware中間件

大家好,我是張飛洪,感謝您的閱讀,我會不定期和你分享學習心得,希望我的文章能成為你成長路上的墊腳石,讓我們一起精進。在本文中,我們將學習中間件,以及如何使用它進一步定制應用程序。我們將快…

Python-循環控制--個人課堂筆記

Python中的兩種循環方式(目前學到):for循環和while循環 for循環和while循環的區別: for循環一般用于控制循環的次數,while循環則是條件循環。 操作實例-猜數字小游戲(3次猜錯提示游戲結束)&…

刪除microsoft_如何從您的Microsoft帳戶中刪除設備

刪除microsoftWhen you sign into Windows 8 or 10 using your Microsoft account (and other Microsoft devices, like an Xbox), those devices become associated with your account. If you want to remove an old device you’ve gotten rid of, you’ll have to pay a vi…