Posts Tagged ‘restore local security policy’

2 Ways to Export and Import Local Security Policy in Windows 10 / 8 / 7

May 13th, 2019 by Admin

How can I backup local security policy or transfer all policy settings from one system to another? In this tutorial we’ll show 2 simple ways to export and import local security policy in Windows 10 / 8 / 7.

Method 1: Export and Import Local Security Policy with GUI

The Local Security Policy Editor comes with the import / export feature, making it much easier to migrate or replicate the same local security policy settings across multiple computers.

Export:

  1. Press the Windows key + R together. When the Run dialog box shows up, type secpol.msc into it and hit Enter to open the Local Security Policy Editor.

  2. Right-click on Security Settings in the left-side pane, and you can then select “Export policy” from the context menu.

  3. Browse to the location where you want to save the security settings file (.INF), give it a name and click on Save.

  4. Open the .inf file with your text editor. As you can see, it contains all your local security policy, including your account lockout and password policy.

Import:

  1. Open the Local Security Policy Editor as before, right-click on Security Settings in the left pane and this time choose “Import policy“.

  2. Browse to the location where you saved the security settings file, select the INF file and click on Open.

  3. Reboot your computer to apply the new local security policy.

Method 2: Export and Import Local Security Policy with Command Prompt

To export the local security policy settings to a file (for example, security-policy.inf), open the Command Prompt as administrator and type the following:
secedit.exe /export /cfg D:\security-policy.inf

When you need to import the local security policy settings from the .INF file, simply run this command:
secedit.exe /configure /db %windir%\security\local.sdb /cfg D:\security-policy.inf

This method is very useful especially when you’re using the Home edition of Windows which has no Local Security Policy Editor.

How to Restore Local Security Policy to Default in Windows 10, 8, 7, Vista and XP

December 14th, 2015 by Admin

Did you mess with the local security policy? Or a certain program changed the security policy that caused some strange issues? Luckily there is a simple way to reset / restore your local security policy settings to default in Windows 10, 8, 7, Vista and XP, if you mess up.

How to Restore Local Security Policy to Default in Windows 10, 8, 7, Vista and XP?

This method uses the default security configuration templates to reset the local policies (including account lockout and password complexity requirements policy). Here’s how to reset local security policy settings to their default values:

  1. Open an elevated Command Prompt. In Windows 10 and 8, press the Windows + X key combinations to open the Quick Access menu and choose Command Prompt (Admin). In Windows 7 or Vista, click the Start menu, then select All Programs -> Accessories, right-click on Command Prompt and select “Run as administrator”.
  2. Now copy and paste the following command into the Command Prompt. Hit Enter.
    secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose

    If you are running Windows XP and need to reset the security settings to their default values, use this command instead:
    secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose

    reset-local-security-policy

  3. This will take a few minutes to reset all the policies back to the Windows defaults. you’ll have to restart the computer to see the changes.