How to Reset Local Security Policy Settings to Default in Windows 11
Resetting local security policy settings in Windows 11 restores them to their original factory state.
Local Security Policy settings on your PC revert to their original default states from when Windows 11 was first installed. This action ensures your computer's security configurations match the factory defaults.
You can access Local Security Policy settings using the Local Security Policy editor, a tool available in Windows 11 Pro, Enterprise, and Education editions. If you have made changes to your Local Security Policy settings and want to undo them, this guide shows you how to reset these Local Security Policy settings back to their default values.
Open Command Prompt as administrator and run the commands RD /S /Q “📂%windir%\System32\GroupPolicyUsers”, RD /S /Q “📂%windir%\System32\GroupPolicy”, and gpupdate /force. Then, delete specific registry keys and restart your computer to complete the reset.
Step 1Open Windows Terminal as an Administrator
To reset group policy Windows 11, you first need to open Windows Terminal with administrator rights. This special window lets you give commands to Windows with full control. To do this, click the Start button , type ‘Windows Terminal’, and then right-click on the result.
Here’s how to open it:
- Click the Start button or press the Windows key on your keyboard.
- Type “Windows Terminal” in the search box.
- When you see “Windows Terminal” in the results, don’t just click it. Instead, right-click on it.
- From the menu that appears, choose “Run as administrator”.
- You’ll see a message asking, “Do you want to allow this app to make changes to your device?” Click “Yes”.
When Windows Terminal opens, it may display "PowerShell" at the top. This occurrence is acceptable. You will know the Windows Terminal is running as an administrator because the title bar will say "Administrator: Windows Terminal."
Step 2Enter the Command to Reset Security Policies
With the administrator window open, you can now enter the specific command to reset security policies. If your Windows Terminal defaults to PowerShell, type: secedit /configure /cfg $Env:WINDIR\inf\defltbase. This command resets your security settings to their default values.
You have two choices for the command, depending on whether you are using PowerShell or Command Prompt in Windows Terminal. Both accomplish the same task.
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.
- Carefully type or paste the command into the blinking line in your Windows Terminal window.
- Check for any mistakes!
- Press the Enter key on your keyboard.
What the command does:
secedit: This is the tool used to manage security settings./configure: This tellsseceditthat you want to set up security./db %windir%\security\local.sdb: This tells the tool which file contains the default security settings.%windir%is a placeholder for your Windows folder (usually C:\Windows), andlocal.sdbis the file with the default settings./cfg %windir%\inf\defltbase.inf: This points to another file that helps set up security./quiet: This makes the command run without showing many messages.
An error in the command might prevent the command from working or lead to incorrect settings being applied. It is best to copy and paste the command directly from here.
You won't see elaborate graphics, but the command will execute. If it runs correctly, no error messages will appear. This process might take a few moments.
Step 3Close Windows Terminal
After the command to reset security policies finishes running, you can close the Windows Terminal window. Look for the 'X' button in the top-right corner and click it. Remember that your computer needs a restart for these changes to fully take effect.
- Look for the "X" button in the top-right corner of the Windows Terminal window.
- Click the "X" to close it.
Step 4Restart Your Computer
Restarting your computer is the final and most critical step to apply the reset group policy Windows 11 changes. Click the Start button, then the Power icon, and select 'Restart'. Make sure to save any open work first, as your computer will shut down and then turn back on.
- Click the Start button.
- Click the Power icon.
- Choose "Restart".
Warning: Save any open work before restarting. Your computer will shut down and then power back on.
After your computer restarts, your Local Security Policy settings will be restored to their original defaults. This is an effective way to resolve issues caused by security setting modifications or to simply return to a known safe configuration.
Summary
To reset your Local Security Policy settings in Windows 11, start by opening Windows Terminal as an administrator. Next, run the command 'secedit /configure /cfg $Env:WINDIR\inf\defltbase' to reset the policies. Finally, restart your computer to make sure all changes are applied correctly.
How do I change my local Security Policy to default?
Open the Local Group Policy Editor. Navigate to the security policies located at Computer Configuration/Administrative Templates/All Settings and User Configuration/Administrative Templates/All Settings. Restore each setting to its default based on its documentation. Reboot your PC.
How do I reset all local policies?
Open Start. Search for Command Prompt, right-click the top result, and select the Run as administrator option. Type the following command to reset all the Group Policy settings and press Enter: RD /S /Q "%WinDir%\System32\GroupPolicyUsers" && RD /S /Q "%WinDir%\System32\GroupPolicy"
How to disable local Security Policy in 🪟 Windows 11?
You can enable/disable LSA using Group Policy as well. In Group Policy Management Editor go to Computer Configuration Administrative Templates System Local Security Authority
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
“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 […]