您可以通过Windows上的(Windows)“设置”(Settings)应用或“控制面板(Control Panel)”更改大多数Windows 10设置。也就是说,当您需要更改更高级的设置时 ,您可能需要依赖本地组策略编辑器。(Local Group Policy Editor)
本地组策略编辑器(Local Group Policy Editor)提供了一个更全面的界面来更改基本设置(即,您可以通过设置(Settings)应用程序或控制面板(Control Panel)更改的设置)以及高级系统配置。
但是,随着时间的推移,您可能会更改太多策略,这可能会导致系统出现不良行为。如果您不记得在不需要的行为开始之前更改的组策略对象(Group Policy Objects),您需要将所有组策略设置重置为默认值。
幸运的是,您可以使用本地组策略编辑器(Local Group Policy Editor)或命令提示符(Command Prompt)一次重置所有对象。在本指南中,我们将向您展示如何操作。
注意(Note):在开始重置组策略设置之前,您应该知道组策略编辑器(Group Policy Editor)仅在Windows 10 专业版(Professional)和企业(Enterprise)版上可用。
使用本地组策略编辑器重置组策略设置(Reset Group Policy Settings Using Local Group Policy Editor)
首先通过在开始菜单(Start Menu)中搜索gpedit.msc来启动(gpedit.msc)本地组策略编辑器(Local Group Policy Editor)。您将在左侧窗格中看到名为Computer Configuration和User Configuration的两个部分。
计算机配置(Computer Configuration)适用于所有计算机和登录到这些计算机的所有用户。相反,用户配置(User Configuration)适用于所有用户,无论他们登录的计算机是什么。当组策略对象(Group Policy Object)( GPO ) 在两种配置下具有冲突的规则时,计算机配置(Computer Configuration)会覆盖用户配置(User Configuration)。
重置计算机配置设置(Reset Computer Configuration Settings)
- 导航到计算机配置(Computer Configuration )>管理模板(Administrative Templates )>所有设置(All Settings)。
- 任何已设置为默认值的设置都将在“状态(State)”列下显示为“未配置”。(Not configured)单击状态(State)列对设置进行排序,以便启用(Enabled)或禁用的设置显示在顶部。
- 双击(Double-click)设置为Enabled或Disabled,一次一个。
- 将状态从启用(Enabled )或禁用(Disabled )设置为未配置(Not configured)。
- 选择应用(Apply),然后选择确定(OK)。
对要重置的每个设置重复该过程。
重置用户配置设置(Reset User Configuration Settings)
- 导航到用户配置(User Configuration )>管理模板(Administrative Templates )>所有设置(All Settings)。
- 由于所有设置的默认状态为Not Configured,因此单击State列对设置进行排序,并将Enabled或Disabled设置置于顶部。
- (Double-click)逐一双击Enabled或Disabled的所有设置。
- 将状态从启用(Enabled )或禁用(Disabled )设置为未配置(Not configured)。
- 选择应用(Apply)和确定(OK)。
如果您需要一次重置大量设置,有一种更方便的方法可以做到这一点。
使用命令提示符重置组策略(Reset Group Policy Using Command Prompt)
如果您有一长串要同时重置为默认设置的设置,您可以使用命令提示符运行两个命令。
但是,此方法仅适用于本地存储的设置。如果网络管理员控制您的组策略设置,您需要联系他们以重置组策略。
- 首先启动提升的命令提示符(Command Prompt)。在开始菜单(Start Menu)中搜索cmd,右键单击命令提示符(Command Prompt),然后以管理员身份运行(Run as administrator)。
- 执行第一条命令:
RD /S /Q “%WinDir%\System32\GroupPolicyUsers” && RD /S /Q “%WinDir%\System32\GroupPolicy”
- 执行第二条命令:
gpupdate /force
第一个命令删除存储组策略(Group Policy)设置的目录,第二个命令刷新组策略(Group Policy)设置。完成后,您已成功重置 Windows 10 电脑上的组策略设置。
您的组策略设置(Group Policy Settings Are)现在和新(New)的一样好(Good)
请注意,如果您的计算机是Active Directory网络的一部分,则无法进行这些更改。您需要联系网络管理员来重置组策略设置。此外,您不能使用此过程来重置本地安全策略(reset Local Security Policy)对象,因为这些设置未存储在“管理(Administrative) 模板(Templates)”部分下。
组策略编辑器(Group Policy Editor)已成为Windows的一部分已有一段时间了,因此此过程还可以在Windows 7和 8.1上的本地组策略编辑器中重置对象。(Local Group Policy Editor)希望(Hopefully)您可以使用任一方法重置组策略,您的系统现在可以正常运行。如果您仍然遇到任何问题,请考虑进行系统还原(system restore)或恢复出厂设置(factory reset)。
How to Reset Group Policy Settings on Windows 10
You can change most Windows 10 settings through the Ѕettings app or the Control Panel on Windоws. That said, yoυ may need to rely on the Local Group Policy Editor when you need to change more advanced settings.
The Local Group Policy Editor provides a more comprehensive interface to change basic settings (i.e., settings that you can change via the Settings app or Control Panel) as well as advanced system configurations.
However, over time, you could change too many policies, which may cause unwanted behavior in your system. If you can’t remember the Group Policy Objects you changed before the unwanted behavior started, you’ll need to reset all group policy settings back to default.
Fortunately, you can reset all objects at once using the Local Group Policy Editor or the Command Prompt. In this guide, we’ll show you how.
Note: Before you start resetting group policy settings, you should know that the Group Policy Editor is only available on Windows 10 Professional and Enterprise.
Reset Group Policy Settings Using Local Group Policy Editor
Start by launching the Local Group Policy Editor by searching for gpedit.msc in the Start Menu. You’ll see two sections on the left pane called Computer Configuration and User Configuration.
Computer Configuration applies to all computers and all users that log on to those computers. On the contrary, User Configuration applies to all users, regardless of the computer they log on to. When a Group Policy Object (GPO) has conflicting rules under both configurations, Computer Configuration overrides User Configuration.
Reset Computer Configuration Settings
- Navigate to Computer Configuration > Administrative Templates > All Settings.
- Any settings that are already set to default will appear as Not configured under the State column. Click on the State column to sort settings so that the ones that are either Enabled or Disabled appear at the top.
- Double-click on settings that are either Enabled or Disabled, one at a time.
- Set the State from Enabled or Disabled to Not configured.
- Select Apply and then select OK.
Repeat the process for every setting you want to reset.
Reset User Configuration Settings
- Navigate to User Configuration > Administrative Templates > All Settings.
- Since the default state of all settings is Not Configured, click on the State column to sort the settings and bring Enabled or Disabled settings to the top.
- Double-click on all settings that are either Enabled or Disabled, one by one.
- Set the State from Enabled or Disabled to Not configured.
- Select Apply and OK.
If you need to reset a large number of settings at once, there’s a more convenient way to do that.
Reset Group Policy Using Command Prompt
If you have a long list of settings that you want to reset to default simultaneously, you can run two commands using the command prompt.
However, this method only works for settings that are stored locally. If a network administrator controls your group policy settings, you’ll need to contact them to reset group policy.
- Start by launching an elevated Command Prompt. Search for cmd in the Start Menu, right-click on Command Prompt, and Run as administrator.
- Execute the first command:
RD /S /Q “%WinDir%\System32\GroupPolicyUsers” && RD /S /Q “%WinDir%\System32\GroupPolicy”
- Execute the second command:
gpupdate /force
The first command deletes the directories where your Group Policy settings are stored, and the second command refreshes your Group Policy settings. When you’re done, you’ve successfully reset group policy settings on your Windows 10 PC.
Your Group Policy Settings Are Now Good as New
Note that you cannot make these changes if your computer is part of an Active Directory network. You’ll need to contact the network administrator to reset group policy settings. Also, you can’t use this process to reset Local Security Policy objects since those settings aren’t stored under the Administrative Templates section.
The Group Policy Editor has been a part of Windows for quite some time, so this process can also reset objects in the Local Group Policy Editor on Windows 7 and 8.1. Hopefully, you could reset the group policy using either method and your system now behaves as it should. If you’re still facing any issues, consider a system restore or factory reset.