How to Reset Group Policy Windows 11 to Default
Resetting the local security policy in Windows 11 puts the security settings back to the defaults Windows ships with. It undoes changes made in Local Security Policy, such as password rules, account lockout rules and user rights assignments. This guide uses one built-in command, run from an elevated Windows Terminal, followed by a restart.
Know what this does and doesn’t cover. The command re-applies the default security template. It does not clear everything in Group Policy Editor. Settings under Administrative Templates are stored separately, and this command doesn’t touch them. If a restriction you set there is still in place afterwards, you have to switch it back to Not Configured by hand.
The Local Security Policy and Group Policy Editor consoles come with Windows 11 Pro, Enterprise and Education. Windows 11 Home doesn’t include them, so you won’t find those settings on a Home PC. Before you start, write down any custom settings you want to keep. The reset overwrites them and there is no undo button.
Open Command Prompt as administrator and run the commands RD /S /Q “📂%windir%\
Step 1Open Windows Terminal as an Administrator
Windows Terminal is a tabbed command-line app. It must run as administrator, because changing security settings needs elevated rights. A regular window will fail with an access error.
- Click the Start button or press the Win.
- Type Windows Terminal in the search box.
- Right-click Windows Terminal in the results. Don’t just click it.
- Choose Run as administrator.
- When the prompt asks “Do you want to allow this app to make changes to your device?”, click Yes. A Windows Terminal window opens.
As a shortcut, you can right-click the Start button and choose Terminal (Admin). On some builds of Windows 11 this entry is labeled Windows Terminal (Admin).
Windows Terminal normally opens to PowerShell, and that works fine. To confirm you have admin rights, look at the title bar. It should read “Administrator: Windows Terminal.” If it doesn’t, close the window and start again. The command will not work without elevation.
That is why this step can't be skipped.
Step 2Enter the Command to Reset Security Policies
The built-in secedit tool re-applies the default security template to your PC. The full command is secedit /configure /cfg $Env:WINDIR\inf\defltbase.inf /db defltbase.sdb /verbose. Which version you use depends on whether your terminal tab is PowerShell or Command Prompt. Both do the same job.
Option A: If Windows Terminal is set to PowerShell (this is the default):
secedit /configure /cfg $Env:WINDIR\inf\defltbase.inf /db defltbase.sdb /verboseOption B: If you switched Windows Terminal to Command Prompt:
You can type or copy and paste one of the provided commands into the Windows Terminal window to reset Local Security Policy settings. Ensure the command you enter is exact to avoid errors during the reset process for your Windows 11 system.
Use the version that matches your tab. The tab name is shown at the top of the window. The two shells write the Windows folder variable differently, so the PowerShell version may not work in Command Prompt, and the other way round.
- Copy the command for your shell from the block above and paste it at the blinking cursor in Windows Terminal. Pasting is safer than typing, because one wrong character can stop the command or apply the wrong settings.
- Read the line once to check that nothing was cut off or changed.
- Press Enter. The tool starts and text begins to scroll.
Here is what each part of the command does:
secedit: This is the tool used to manage security settings./configure: This tellsseceditthat you want to configure security./db %windir%\security\local.sdb: This tells the tool which template file holds the security settings to apply.%windir%stands for your Windows folder (usually C:\Windows), andlocal.sdbis the template with the default settings./cfg %windir%\inf\defltbase.inf: This names the database file the tool uses while it applies the template./quiet: This makes the tool print detailed progress as it works, so you can see what it is doing.
There are no graphics or progress bar. You will see lines of text as each security area is processed. This can take a minute or two, so wait until the prompt returns. A successful run ends with a message that the task completed successfully. If you see a message about completing with warnings, that usually means a few items couldn't be changed. If you see an error or "access denied", the window probably isn't elevated, so reopen Windows Terminal as administrator and run the command again.
Step 3Close Windows Terminal
Once the command has finished and the prompt is back, you can close Windows Terminal.
- Find the X button in the top-right corner of the Windows Terminal window.
- Click X. The window closes.
Don't test any settings before then.
Step 4Restart Your Computer
A restart finishes the process and makes Windows load the restored settings.
- Save your work and close your apps.
- Click the Start button.
- Click the Power icon.
- Choose Restart. The PC shuts down and starts again.
Warning: Save any open work before restarting. Unsaved files will be lost.
After you sign back in, your Local Security Policy settings are back to their defaults. This is a good fix when changed security settings are causing problems, or when you want to return to a known configuration. To check, open Local Security Policy on Pro, Enterprise or Education and review the settings you had changed. If you want any of them back, you will need to set them again by hand.
Summary
To reset your Local Security Policy settings in Windows 11, open Windows Terminal as administrator. Run the full command, secedit /configure /cfg $Env:WINDIR\inf\defltbase.inf /db defltbase.sdb /verbose, in PowerShell, or the Command Prompt version from Option B. Wait for it to finish, close the window, then restart your computer so the changes take effect. Remember that Administrative Templates settings are separate and need to be reset manually.
Have a question about this guide?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
“Access denied” 11 sure needs a lot of work.
[…] The Local Group Policy Editor (gpedit.msc) settings are an extension of the Local Security Policy that allows you to define security configurations as part of a Group Policy Object (GPO). […]
[…] open the Local Group Policy Editor (gpedit. msc) by going to the Start menu and searching for and selecting Edit group policy, as […]
[…] control access to removable storage devices in Windows, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy, as […]
[…] open Local Group Policy Editor by clicking on the Start Menu and searching for Edit group policy, as […]
[…] First, open the Local Group Policy Editor. […]
[…] First, open the Local Group Policy Editor. […]
[…] First, open the Local Group Policy Editor. […]
[…] Starting with Windows 11, the LSA feature is disabled by default. However, you can turn it on and off anytime using the Windows Security app, Windows Registry editor, and the Local Group Policy editor. […]
[…] Windows 11, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy, as highlighted below. […]
[…] do that, first, open the Local Group Policy editor […]
[…] To do that, first, open the Local Group Policy Editor. […]
[…] Yet, another way to add or remove the hibernate button on the power options menu is to use the Local Group Policy Editor. […]
[…] Yet, another way to add or remove the sleep button on the power options menu is to use the Local Group Policy Editor. […]
[…] First, open the Local Group Policy Editor. […]
[…] First, open the Local Group Policy Editor. […]
[…] open Local Group Policy Editor by clicking the Start Menu and searching for Edit group policy, as […]
[…] open Local Group Policy Editor by clicking the Start Menu and searching for Edit group policy, as […]
[…] open Local Group Policy Editor by clicking on the Start Menu and searching for Edit group policy, as […]
[…] open Local Group Policy Editor by clicking on the Start Menu and searching for Edit group policy, as […]
[…] Open Local Group Policy Editor by clicking on the Start Menu and searching for Edit group policy, as highlighted below. […]
[…] lock down Proxy settings in Windows, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy as […]
[…] Windows 11, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy, as highlighted below. […]
[…] Windows 11, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy, as highlighted below. […]
[…] Windows 11, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy, as highlighted below. […]
[…] Via Local Group Policy […]
[…] First, open the Local Group Policy Editor. […]
[…] If you want to disable this feature for all users on the system, you can use the Local Group Policy editor. […]
[…] open Local Group Policy Editor by clicking on the Start Menu and searching for Edit group policy, as […]
[…] open Local Group Policy Editor by clicking on the Start Menu and searching for Edit group policy, as […]
[…] open Local Group Policy Editor by clicking on the Start Menu and searching for Edit group policy, as […]
[…] open Local Group Policy Editor by clicking on the Start Menu and searching for Edit group policy, as […]
[…] turn it on or off this policy, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy, as […]
[…] Windows 11, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy, as highlighted below. […]
[…] open the Local Group Policy editor, and browse the folders […]
[…] First, open the Local Group Policy Editor. […]
[…] open Local Group Policy Editor by clicking the Start Menu and searching for Edit group policy, as […]
[…] First, open the Local Group Policy Editor. […]
[…] First, open the Local Group Policy Editor. […]
[…] First, open the Local Group Policy Editor. […]
[…] lock down Proxy settings in Windows, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy as […]
[…] Windows 11, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy, as highlighted below. […]
[…] Windows 11, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy, as highlighted below. […]
[…] turn off editing, open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy, as highlighted below. Then, […]
[…] open Local Group Policy Editor by clicking on the Start menu and searching for Edit group policy as […]
[…] either the Local Group Policy Editor or the Registry Editor to make this […]
[…] the Local Group Policy Editor by pressing Windows key + R, typing gpedit.msc, and pressing […]
[…] If you want detailed instructions, see this guide: How to Open Local Group Policy Editor in Windows 11. […]
[…] Press Windows key + R, type gpedit.msc, and press Enter to open the Local Group Policy Editor. (If you don’t know how to open it, see this guide: How to open Local Group Policy Editor) […]
[…] How to Reset Windows 11 Local Group Policy Settings […]
[…] How to Use the Local Group Policy Editor […]
[…] Open the Local Group Policy Editor. (If you don’t know how, check this guide). […]
[…] Need more help? Check out this article on resetting Group Policy settings: Reset Group Policy Settings in Windows 11 […]
[…] First, open the Local Group Policy Editor. […]
[…] the Local Group Policy Editor by pressing the Windows key, typing gpedit.msc, and pressing […]
[…] Local Group Policy Editor by clicking the Start Menu and typing “Edit group policy.” Select the result to open […]
[…] open Local Group Policy Editor by clicking the Start Menu and searching for “Edit group policy.” Select the result to […]
[…] Open Local Group Policy Editor by clicking the Start menu and searching for “Edit group […]
[…] open Local Group Policy Editor by clicking the Start Menu and searching for “Edit group […]
[…] can also control the button through the Local Group Policy Editor. Search for “Edit group policy” in your Start menu and open […]
[…] Using the Local Group Policy Editor […]
[…] Open Local Group Policy Editor by clicking the Start Menu and searching for “Edit group […]
[…] Open the Local Group Policy Editor. […]
[…] Open the Local Group Policy Editor. […]
[…] you are an advanced user, you can use the Local Group Policy editor app to change these […]