你有二手电脑吗?也许来自一家正在关闭的公司,或者来自不再需要他们的人?理想情况下,您只想重新格式化计算机并从头开始,对吗?
然而,情况并非总是如此。假设您有一台已安装Windows的计算机,但您没有计算机随附的原始 CD 或产品密钥。因此,您可能不想重新格式化计算机,这可能会导致Windows无法正确激活。
那么,让它保持原样有什么问题呢?好吧,有时当您获得一台计算机时,它可能是Active Directory环境的一部分,这意味着它受制于组策略(Group Policies)。
即使您从域中删除计算机并将其放入工作组,更改的本地安全策略也不会被删除。这可能很烦人,因为本地安全策略包括阻止用户安装打印机、限制谁可以使用CD-ROM驱动器、需要智能卡、限制登录时间、强制要求密码等设置!
这些在企业环境中都很棒,但会给普通计算机用户带来各种悲伤。解决此问题的方法是将本地安全设置重置为默认设置。
完成此操作的方法是使用所有Windows版本附带的默认安全配置模板。这听起来可能太技术性了,但您所要做的就是运行一个命令。
首先,点击Start,Run然后输入CMD。在较新版本的Windows中,单击开始(Start)并输入CMD。然后右键单击命令提示符(Command Prompt)并选择Run as Administrator。
如果您运行的是Windows XP,现在将以下命令复制并粘贴到窗口中:
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
如果您运行的是Windows 10、Windows 8、Windows 7 或Windows Vista,并且需要将安全设置重置为其默认值,请改用以下命令:
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
就是这样!现在只需等待Windows完成所有注册表设置并重置它们。这需要几分钟,您必须重新启动计算机才能看到更改。
现在,您应该能够使用您的计算机,而无需以前应用的组(Group) 策略(Policies)中的任何本地安全设置残余。如果您有任何问题,请随时发表评论。享受!
How to Reset Local Security Policy Settings to Default in Windows 10, 8, 7, Vista, XP
Have you ever gotten a computеr second-hand? Maybe from a company that was shutting down or from someone who no longer needed theirs? Ideally, you would want to simply reformat the computer and start from scratch, right?
However, that’s not always the case. Let’s say you get a computer that has Windows already installed, but you don’t have the original CD or product key that came with the computer. So, you might not want to reformat the computer, which could risk Windows not activating properly.
So, what’s the problem with just leaving it the way it is? Well, sometimes when you get a computer, it may have been part of an Active Directory environment, which means it was subject to Group Policies.
Even if you remove the computer from the domain and put it into a workgroup, the local security policies that were changed will not be removed. This can be very annoying because local security policies include settings like preventing users from installing printers, restricting who can use the CD-ROM drive, requiring a smart card, restricting logon hours, forcing password requirements and more!
These are all great in a corporate environment, but will cause all kinds of grief to a normal computer user. Wwhat you can do to solve this problem is to reset the local security settings to their default settings.
The way this can be done is by using the default security configuration templates that come with all versions of Windows. This may sound too technical, but all you have to do is run one command.
First, click on Start, Run and then type in CMD. In newer versions of Windows, click Start and type in CMD. Then right-click on Command Prompt and choose Run as Administrator.
Now copy and paste the following command into the window if you are running Windows XP:
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
If you are running Windows 10, Windows 8, Windows 7, or Windows Vista and need to reset the security settings to their default values, use this command instead:
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
That’s it! Now just wait for Windows to go through all the registry settings and reset them. It takes a few minutes and you’ll have to restart the computer to see the changes.
Now you should be able to use your computer without any of the remnants of local security settings from previously applied Group Policies. If you have any questions, feel free to comment. Enjoy!