20.2 C
Texas

How to import or export Local Security Policy in Windows 10/Server 2019

Hello! Microsoft has increased the security of Windows systems with different measures. Indeed, these actions are focused on protecting data and services. One of these configurations is the configuration of security policies. Since these are rules that manage the security settings of the computer. Consequently, these policies allow managing various aspects such as: assigning groups for users, defining resource permissions for users, among others. So let’s see how to import or export Local Security Policy in Windows 10/Server 2019.

How to export security policies. Graphic mode

It is likely that at some point you will modify some element of the security policies. In such a case the most recommendable thing is to export the configuration. This way, you will not have to restore them manually. Since it would be enough with importing them to return to the original state. So first press the Win+R combination and run the following command:

secpol.msc

The local security policy console is immediately displayed. Once there, please right-click on Security Settings. Finally, select the Export Policy option:

Exporting the security policy.
- Advertisement -

By default, Windows 10 will store this file in the following path: C:\Users\coolr\Documents\Security\Templates. However, you can choose a different location. Please assign the name and save the backup.

Exporting the security policy
Exporting the security policy

How to import local security policy. Graphic mode

To import the security policies, we must go back to the local policy manager. With this in mind, repeat the process from the previous point. Once there, right click on Security Settings and then on Import Policy.

Importing security policy.
Importing security policy.

Then go to the file location and press open to start the process. Finally, restart the computer to complete the task

Selecting the file
Selecting the file

How to export the local security policy. Command Prompt Mode

The first thing you have to do is open a command prompt and use the following syntax:

secedit.exe /export /cfg X:\file.inf

Please remember to replace the letter X with the path where you will be saving the file. And of course, assign the name to the file. In my case, the command was like this:

secedit.exe /export /cfg E:\bck.inf
Exporting security policy with CMD
Exporting security policy with CMD

How to import security policy with CMD

To import the security policy, please use the following syntax:

secedit.exe /configure /db %windir%\security\local.sdb /cfg X:file.inf

Once again, modify the parameters as in the previous section. In my case it is:

secedit.exe /configure /db %windir%\security\local.sdb /cfg E:bck.inf
Importing security policy with CMD

Finally, we have seen how to import or export Local Security Policy in Windows 10/Server 2019. Consequently, we will be able to restore these policies at any time. Or simply export it to another computer. This is all for the moment, before saying goodbye I invite you to see our post on how to check the status of the domain controller in Windows Server. See you later!

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article