本地组策略编辑(Local Group Policy Editor)器使高级用户能够控制(power user)Windows中的大量设置。您可以控制登录和关闭过程、允许用户访问的功能和应用程序,并且可以使用提供大量信息的简单界面来实现。该工具本身相当隐藏,在使用它之前,您显然需要知道如何在Windows 10和Windows 11中访问(Windows 11)本地组策略编辑器(Local Group Policy Editor)。我们整理了一份完整的访问方法列表,以便您选择最方便的方法:
Windows中的本地组策略编辑器(Group Policy Editor)在哪里?我找不到!
本地组策略编辑器(Local Group Policy Editor)是针对Windows高级用户的工具。您可以在本文中找到有关使用该工具的大量信息:什么是本地组策略编辑器(Group Policy Editor),以及如何使用它?
如果您尝试以下方法但本地组策略编辑器(Local Group Policy Editor)未显示(t show),则您可能拥有该工具未附带的Windows版本。(Windows)默认情况下,您只能在以下位置找到编辑器:
- Windows 11专业版和 Windows(Pro and Windows) 11 企业版
- Windows 10专业版和 Windows(Pro and Windows) 10 企业版
- Windows 7 专业版(Professional)、Windows 7 旗舰版(Ultimate)和Windows 7企业版
- Windows 8.1专业版和 Windows(Professional and Windows) 8.1 企业版
尽管本文未介绍该过程(process isn),但也有一些方法可以在 Windows家庭(Home)版上安装本地组策略编辑器。(Local Group Policy Editor)如果您不知道您的Windows 版本(Windows version),请阅读本教程:如何分辨我拥有的Windows(11 种方式)。
注意:(NOTE:)本文涵盖Windows 11 和Windows 10。尽管如此,下面描述的许多方法也适用于旧版本的Windows。
全局编辑策略与编辑特定用户或组的策略
如果您的Windows 计算机(Windows computer)上有其他用户(例如其他家庭成员),您可以控制他们可以进行哪些类型的更改以及他们可以运行哪些应用程序。在打开本地组策略编辑器(Local Group Policy Editor)之前,您首先需要决定是要将更改应用于计算机上的所有用户(包括您自己)还是仅应用于特定用户或用户组(例如非管理员)。打开本地组策略编辑器(Local Group Policy Editor)的过程将非常不同,具体取决于您的目标。
首先,让我们看看如果要将更改应用到所有用户,如何打开编辑器。
注意:(NOTE:)您需要具有管理权限才能访问本地组策略编辑器(Local Group Policy Editor)。如果您尝试以普通用户身份打开它,则会收到以下错误:
只有具有管理权限的用户才能使用本地组策略编辑器(Local Group Policy Editor)
打开本地组策略编辑器(Local Group Policy Editor)以更改所有用户的设置
如果您希望您修改的设置影响计算机的所有用户(或者如果您想修改与计算机本身相关的设置),您可以通过以下方式打开本地组策略编辑器(Local Group Policy Editor):
1.使用Windows 搜索(Windows Search)打开本地组策略编辑器(Local Group Policy Editor)
打开本地组策略编辑器(Local Group Policy Editor)的第一种方法非常简单:您必须按名称或其可执行文件的名称搜索它:gpedit.msc。对于 Windows 11,按keyboard or click/tap上的Windows + S或单击/点击任务栏上的放大镜图标以打开“搜索”(Search)窗口。然后,键入gpedit或group policy,结果应该会在您键入时显示。单击(Click)或点击“编辑组策略(Edit group policy)”结果。
在Windows 11中使用搜索(Search)打开本地组策略编辑器(Local Group Policy Editor)
您想知道如何在Windows 10中找到(Windows 10)本地组策略编辑器(Local Group Policy Editor)吗?好吧,在这种情况下,这个过程甚至更简单,因为这个流行的操作系统(operating system)在其任务栏中有一个搜索字段(search field)。只需单击或点击(Just click or tap)输入字段(input field)(或按Windows + S),然后键入gpedit或group policy。在结果列表中,单击或点击(click or tap)“编辑组策略(Edit group policy)”。
提示:(TIP:)您也可以使用“开始”菜单(Start Menu)启动搜索。只需(Simply)按Windows键或单击任务栏上的开始菜单(Start Menu)图标即可打开它,然后开始输入关键字。
2.从设置(Settings)中打开本地组策略编辑器(Local Group Policy Editor)
在Windows 10中使用搜索(Search)打开本地组策略编辑器(Local Group Policy Editor)
您还可以从Windows 11或 Windows 10中的“设置”(Settings )应用程序访问本地组策略编辑器。(Local Group Policy Editor)首先(First),打开“设置”(Settings)(一种方法是按键盘上的Windows + I ),然后在搜索框中键入gpedit并选择“编辑组策略(Edit group policy)”结果。这是它在 Windows 11 上的外观:
从Windows 11的(Windows 11)设置(Settings)中打开本地组策略编辑器(Local Group Policy Editor)
…这就是它在Windows 10上的外观。非常相似。
从Windows 10的(Windows 10)设置(Settings)中打开本地组策略编辑器(Local Group Policy Editor)
3.为本地组策略编辑器(Local Group Policy Editor)创建快捷方式
如果您想非常频繁地访问编辑器但更喜欢使用桌面快捷方式,那么您可以为本地组策略编辑器(Local Group Policy Editor)创建一个。在创建快捷方式(Create Shortcut)向导中,在位置(Location)字段中键入gpedit.msc 。如果您不知道如何创建快捷方式,请阅读这篇文章:如何在Windows中为文件、文件夹、应用程序和网页创建快捷方式。
在Windows中创建(Windows)本地组策略编辑器(Local Group Policy Editor)的快捷方式
创建后,您可以通过双击或双击快捷方式打开本地组策略编辑器。(Local Group Policy Editor)
本地组策略编辑器(Local Group Policy Editor)快捷方式
4. 将本地组策略编辑器(Local Group Policy Editor)固定到任务栏或开始菜单(Start Menu)
如果您经常使用本地组策略编辑器(Local Group Policy Editor),您可以将其固定到任务栏或开始菜单(Start Menu),但首先,您需要为编辑器创建快捷方式。创建后,在Windows 11中,右键单击或点击(right-click or tap)并按住图标。接下来,通过选择“显示更多选项(Show more options)”访问旧的右键菜单。然后,根据您要执行的操作,单击或点击这两个操作之一。(click or tap)
(Select one)如果要在Windows 11中固定快捷方式,请(Windows 11)选择两个选项之一
在Windows 10中,由于经典的右键菜单是默认设置,只需右键单击(或点击并按住(tap and hold))快捷方式,然后选择(shortcut and select) Pin to Start或Pin to taskbar。
在Windows 10中固定本地组策略编辑器更容易(Local Group Policy editor)
从现在开始,您可以从开始菜单(Start Menu)或任务栏打开本地组策略编辑器。(Local Group Policy Editor)
5.从控制面板(Control Panel)打开本地组策略编辑器(Local Group Policy Editor)
本地组策略编辑器(Local Group Policy Editor )也可以通过控制面板(Control Panel)获得。首先,打开控制面板(Control Panel)。然后,单击搜索框(search box),键入“(type “)组策略(group policy)”,然后单击或点击结果列表中的编辑组策略(Edit group policy)。
(Open Local Group Policy Editor)从控制面板(Control Panel)打开本地组策略编辑器
注意:(NOTE:)尽管Windows在管理工具(Administrative tools)(在 Windows 10 中)或Windows 工具(Windows tools)(在Windows 11中)下列出了搜索结果(search result),但如果您打开该位置,则编辑组策略(Edit group policy)快捷方式不存在。因此,在控制面板(Control Panel)中访问它的唯一方法是使用搜索功能。
6.使用运行窗口打开(Run window)本地组策略编辑器(Local Group Policy Editor)
这是打开本地组策略编辑器(Local Group Policy Editor)的另一种方法:按键盘上的Windows + R打开“运行”(Run)窗口。然后,键入gpedit.msc并按键盘上的Enter或单击OK。
使用运行(Run)打开本地组策略编辑器(Local Group Policy Editor)
7.使用命令提示符(Command Prompt)、PowerShell 或 Windows 终端(PowerShell or Windows Terminal)打开本地组策略编辑器(Local Group Policy Editor)
您还可以使用命令提示符(Command Prompt)、PowerShell或Windows 终端(Windows Terminal)打开编辑器。在任何这些应用程序中,在命令行中键入gpedit.msc并按Enter。
命令提示符和 PowerShell(Command Prompt and PowerShell)的命令相同
8.使用任务管理器打开(Task Manager)本地组策略编辑器(Local Group Policy Editor)
您可以使用任务管理(Task Manager)器打开本地组策略编辑(Local Group Policy Editor)器。启动任务管理器(Task Manager)(一种快速的方法是按键盘上的Ctrl + Shift + Esc)。如果您看到任务管理器(Task Manager)的紧凑视图,请按左下角的更多详细信息。(More details)接下来,打开文件(File)菜单,然后单击或点击“运行新任务(Run new task)”。
在任务管理器中运行新任务
现在,在“创建新任务(Create new task)”窗口的打开(Open)字段中键入gpedit.msc 。按Enter或OK运行命令。
从任务管理(Task Manager)器打开本地组策略编辑器(Local Group Policy Editor)
9.使用文件资源管理(File Explorer)器打开本地组策略编辑器(Local Group Policy Editor)
Windows 11和Windows 10中的文件资源管理器(File Explorer )是启动本地组策略编辑器(Local Group Policy Editor)的另一种便捷方式。只需打开文件资源管理器(File Explorer),然后在地址栏中键入gpedit.msc并按键盘上的Enter 。
(Run)在Windows 11和 Windows 10中从文件资源管理器(File Explorer)运行本地组策略编辑器(Local Group Policy Editor)
10.通过运行其可执行文件打开本地组策略编辑器(Local Group Policy Editor)
在Windows 11和Windows 10上,可以在Windows文件夹的(Windows)System32子文件夹中找到本地组策略编辑器(Local Group Policy Editor)可执行文件。导航到“C:\Windows\System32”并查找名为gpedit的文件。如果将鼠标光标(mouse cursor)悬停在文件上,其描述应为“ Microsoft Common Console Document ”。确定正确的文件(correct file)后,双击或双击它。
该文件位于System32 文件夹中(System32 folder)
打开本地组策略编辑器(Local Group Policy Editor)以更改特定用户或组的设置
如果您只想调整Windows PC上特定用户帐户或用户组(user account or user group)的设置,则启动本地组策略编辑器(Local Group Policy Editor )会更加复杂,首先要启动Microsoft 管理控制台(Microsoft Management Console)。最快的方法是按Windows + R打开运行(Run)窗口,输入mmc并按Enter。如果您收到UAC警告,请按“是”(Yes)继续。在出现的MMC窗口中,打开文件(File)菜单,然后单击或点击Add/Remove Snap-in。
在Microsoft 管理控制台中添加管理单元(Microsoft Management Console)
出现添加或删除管理单元(Add or Remove Snap-ins)窗口。在这里,单击或点击(click or tap)Group Policy Object Editor,然后按Add。或者,您可以双击组策略对象编辑器(Group Policy Object Editor)管理单元。
选择(Select)Group Policy Object Editor,然后按Add
这将打开选择组策略对象(Select Group Policy Object)向导。单击或点击浏览(Browse)以继续。
在向导中点击浏览
在下一个窗口中,转到“用户(Users)”选项卡,选择要进行更改的用户或用户组(我们选择了“非管理员(Non-Administrators)”组),然后单击或点击“确定(OK)” 。最后,按完成(Finish)。
选择要更改设置的用户或组
添加或删除管理单元(Add or Remove Snap-ins)窗口成为焦点。按右下角的确定按钮。(OK)这将打开适用于所选用户/组的设置树。
按确定,编辑器将出现
如果您打算经常更改设置,为了绕过这个冗长的过程,您可以保存控制台设置。打开文件(File)菜单,然后单击或点击另存为(Save as)。
保存本地组策略编辑器(Local Group Policy Editor)的控制台配置(console configuration)
接下来,导航到要创建控制台快捷方式的位置,重命名快捷方式,然后单击或点击(click or tap)Save。
重命名快捷方式并将(shortcut and place)其放在您选择的文件夹中
下次您要修改同一用户或组(user or group)的设置时,只需双击或双击新创建的图标。
注意:您在(NOTE:)本地组策略编辑器(Local Group Policy Editor)中更改的设置将被强制执行,并将覆盖用户的首选项。例如,您可以强制使用某个壁纸,在这种情况下,用户将无法更改它(除非它有权访问本地组策略编辑器(Local Group Policy Editor))。
您打算在本地组策略编辑器(Local Group Policy Editor)中进行哪些更改?
本地组策略编辑器(Local Group Policy Editor)是专为高级用户和 IT 管理员设计的强大工具。您可以控制其他用户如何访问和使用您的Windows PC(Windows PC)的许多方面。您打算在本地组策略编辑器(Local Group Policy Editor)中进行哪些更改?在下面的评论中(comment below)让我们知道您的偏好。另外,如果您知道任何其他打开编辑器的方法,请与我们分享,我们将更新文章。
How to open the Local Group Policy Editor in Windows -
The Local Group Policy Editor enables a power user to control a large number of settings in Windows. You can control the sign-in and shutdown processes, the features and the apps that users are allowed to access, and you can do so using a simple interface that offers lots of information. The tool itself is rather hidden from view and before using it, you obviously need to know how to get to Local Group Policy Editor in Windows 10 and Windows 11. We have put together a comprehensive list of methods for accessing it, so that you can choose the one that is most convenient:
Where is the Local Group Policy Editor in Windows? I can’t find it!
The Local Group Policy Editor is a tool aimed at power users of Windows. You can find lots of information about using the tool in this article: What is the Local Group Policy Editor, and how do I use it?
If you try the methods below and the Local Group Policy Editor doesn’t show up, you may have a version of Windows that doesn’t come with the tool. By default, you can find the editor only in:
- Windows 11 Pro and Windows 11 Enterprise
- Windows 10 Pro and Windows 10 Enterprise
- Windows 7 Professional, Windows 7 Ultimate, and Windows 7 Enterprise
- Windows 8.1 Professional and Windows 8.1 Enterprise
Although the process isn’t covered in this article, there are ways to install the Local Group Policy Editor on Windows Home editions as well. If you do not know your Windows version, read this tutorial: How to tell what Windows I have (11 ways).
NOTE: This article covers Windows 11 and Windows 10. Still, many of the methods described below are valid for older versions of Windows as well.
Editing policies globally versus editing policies for specific users or groups
If you have other users on your Windows computer (for example other family members), you can control what kinds of changes they can make and what applications they can run. Before you open the Local Group Policy Editor, you first need to decide whether you want the changes to apply to all users (including yourself) or only to specific users or groups of users (for example non-administrators) on your computer. The process of opening the Local Group Policy Editor is going to be very different, depending on your objective.
First, let’s see how you can open the editor if you want to apply the changes to all users.
NOTE: You need to have administrative privileges in order to be able to access the Local Group Policy Editor. If you try opening it as a regular user, you get this error:
Only users with administrative rights can use the Local Group Policy Editor
Opening the Local Group Policy Editor to change settings for all users
If you want the settings that you modify to affect all users of the computer (or if you want to modify settings related to the computer itself), here are all the ways you can open the Local Group Policy Editor:
1. Open Local Group Policy Editor using Windows Search
The first method of opening the Local Group Policy Editor is pretty simple: you have to search for it by name or by the name of its executable file: gpedit.msc. For Windows 11, press Windows + S on your keyboard or click/tap on the magnifier icon on your taskbar to open the Search window. Then, type either gpedit or group policy, and the result should show up as you type. Click or tap on the “Edit group policy” result.
Open the Local Group Policy Editor using Search in Windows 11
Are you wondering how to find Local Group Policy Editor In Windows 10? Well, the process is even simpler in this case, since this popular operating system has a search field in its taskbar. Just click or tap on the input field (or press Windows + S) and then type gpedit or group policy. In the results list, click or tap on “Edit group policy.”
TIP: You can use the Start Menu to initiate a search, as well. Simply open it by pressing the Windows key or clicking the Start Menu icon on the taskbar, then start typing the keyword.
2. Open the Local Group Policy Editor from Settings
Open the Local Group Policy Editor using Search in Windows 10
You can also access the Local Group Policy Editor from the Settings app in Windows 11 or Windows 10. First, open Settings (one way to do it is by pressing Windows + I on your keyboard), then type gpedit in the search box and select the “Edit group policy” result. Here’s how it looks on Windows 11:
Open the Local Group Policy Editor from Settings in Windows 11
…and here’s how it looks on Windows 10. Very similar.
Open the Local Group Policy Editor from Settings in Windows 10
3. Create a shortcut for Local Group Policy Editor
If you want to access the editor very frequently but prefer to use desktop shortcuts, then you can create one for Local Group Policy Editor. In the Create Shortcut wizard, type gpedit.msc in the Location field. If you don’t know how to create shortcuts, read this article: How to create shortcuts for files, folders, apps, and web pages in Windows.
Create a shortcut to the Local Group Policy Editor in Windows
After creating it, you can open Local Group Policy Editor by double-clicking or double-tapping on the shortcut.
The Local Group Policy Editor shortcut
4. Pin the Local Group Policy Editor to the taskbar or the Start Menu
If you use the Local Group Policy Editor frequently, you can pin it to the taskbar or the Start Menu, but first, you need to create a shortcut for the editor. After creating it, in Windows 11, right-click or tap and hold the icon. Next, access the old right-click menu by selecting “Show more options”. Then, click or tap on one of the two actions, depending on what you want to do.
Select one of the two options if you want to pin the shortcut in Windows 11
In Windows 10, since the classic right-click menu is the default, simply right-click (or tap and hold) on the shortcut and select Pin to Start or Pin to taskbar.
Pinning the Local Group Policy editor is easier in Windows 10
From now on, you can open Local Group Policy Editor from the Start Menu or the taskbar.
5. Opening the Local Group Policy Editor from Control Panel
Local Group Policy Editor is also available through the Control Panel. First, open the Control Panel. Then, click on the search box, type “group policy” and click or tap on Edit group policy in the results list.
Open Local Group Policy Editor from the Control Panel
NOTE: Although Windows lists the search result under Administrative tools (in Windows 10) or Windows tools (in Windows 11), if you open the location, the Edit group policy shortcut is not there. Thus, the only way to reach it in the Control Panel is to use the search feature.
6. Open Local Group Policy Editor by using the Run window
Here’s another way to open Local Group Policy Editor: Press Windows + R on the keyboard to open the Run window. Then, type gpedit.msc and press Enter on the keyboard or click OK.
Open the Local Group Policy Editor using Run
7. Open Local Group Policy Editor by using Command Prompt, PowerShell or Windows Terminal
You can also use Command Prompt, PowerShell, or Windows Terminal to open the editor. In any of these apps, type gpedit.msc in the command line and press Enter.
The command is identical for Command Prompt and PowerShell
8. Open Local Group Policy Editor by using Task Manager
You can open Local Group Policy Editor using the Task Manager. Launch Task Manager (a quick way to do it is by pressing Ctrl + Shift + Esc on your keyboard). If you are presented with the compact view of the Task Manager, press More details in the bottom-left corner. Next, open the File menu and click or tap “Run new task”.
Run a new task in Task Manager
Now, type gpedit.msc in the Open field of the “Create new task” window. Press Enter or OK to run the command.
Opening the Local Group Policy Editor from the Task Manager
9. Open Local Group Policy Editor by using File Explorer
The File Explorer from Windows 11 and Windows 10 is another convenient way to start the Local Group Policy Editor. Simply open File Explorer, then type gpedit.msc in the address bar and press Enter on the keyboard.
Run the Local Group Policy Editor from File Explorer in Windows 11 and Windows 10
10. Open Local Group Policy Editor by running its executable file
On both Windows 11 and Windows 10, the Local Group Policy Editor executable file is found in the System32 subfolder of the Windows folder. Navigate to “C:\Windows\System32” and look for a file named gpedit. If you hover your mouse cursor over the file, its description should be “Microsoft Common Console Document”. Once you identified the correct file, double-click or double-tap on it.
The file is located in the System32 folder
Opening the Local Group Policy Editor to change settings for specific users or groups
If you want to adjust settings only for a specific user account or user group on your Windows PC, launching the Local Group Policy Editor is more complicated and begins with launching the Microsoft Management Console. The quickest way to do this is by pressing Windows + R to open the Run window, typing mmc and pressing Enter. If you get a UAC warning, press Yes to continue. In the MMC window that appears, open the File menu, then click or tap on Add/Remove Snap-in.
Add a snap-in in the Microsoft Management Console
The Add or Remove Snap-ins window appears. Here, click or tap on Group Policy Object Editor, then press Add. Alternatively, you can double-click the Group Policy Object Editor snap-in.
Select the Group Policy Object Editor, then press Add
This opens the Select Group Policy Object wizard. Click or tap on Browse to continue.
Hit Browse in the wizard
In the next window, go to the Users tab, select the user or the group of users for which you want to make changes (we selected the Non-Administrators group), then click or tap on OK afterward. Finally, press Finish.
Selecting the user or the group for which you want to change settings
The Add or Remove Snap-ins window comes into focus. Press the OK button in the lower-right. This opens the settings tree applicable to the selected user/group.
Press OK and the Editor will appear
If you plan on changing the settings frequently, in order to bypass this lengthy process, you can save the console settings. Open the File menu, then click or tap on Save as.
Save the console configuration for the Local Group Policy Editor
Next, navigate to the location where you want a shortcut to the console to be created, rename the shortcut, and click or tap on Save.
Rename the shortcut and place it in a folder of your choosing
The next time you want to modify the settings for the same user or group, simply double-click or double-tap the newly-created icon.
NOTE: The settings you alter in the Local Group Policy Editor will be enforced and will override the user’s preferences. For example, you can enforce a certain wallpaper, in which case the user will have no way of changing it (unless it has access to Local Group Policy Editor).
What do you plan to change in the Local Group Policy Editor?
Local Group Policy Editor is a powerful tool designed for power users and IT administrators. You get to control many aspects of how the other users access and use your Windows PC. What do you plan to change in the Local Group Policy Editor? Let us know your preferences in a comment below. Also, if you know any other ways of opening the editor, share them with us and we will update the article.