admin管理员组

文章数量:1581083

For your security, Microsoft already requires a minimum password length for all Microsoft accounts. Should you want to reinforce all local accounts, you can set a minimum password length for each user on Windows 10. Here’s how.

为了您的安全,Microsoft已经要求所有Microsoft帐户的最小密码长度。 如果要加强所有本地帐户,可以在Windows 10上为每个用户设置最小密码长度。

By default, when you create a new local user on Windows 10, the account doesn’t require a password. However, if you want to implement a minimum password length for everyone, there are a couple of ways to apply this prerequisite for the safety of your computer.

默认情况下,当您在Windows 10上创建新的本地用户时,该帐户不需要密码。 但是,如果要为每个人实现最小密码长度,则有两种方法可以应用此先决条件以确保计算机安全。

家庭用户:通过命令行设置最小密码长度 (Home Users: Set a Minimum Password Length Via Command Line)

First, you’ll need to run an elevated instance of Command Prompt. If you prefer using PowerShell, you can use that as well. The following command works virtually the same on either program, but be sure to click “Run As Administrator” if you choose to use PowerShell.

首先,您需要运行提升的命令提示符实例。 如果您更喜欢使用PowerShell,则也可以使用它。 以下命令在两个程序上的工作原理几乎相同,但是如果选择使用PowerShell,请确保单击“以管理员身份运行”。

Click the Start button, type “cmd” into the search box, right-click on the “Command Prompt” result, and then select “Run As Administrator.”

单击开始按钮,在搜索框中键入“ cmd”,右键单击“命令提示符”结果,然后选择“以管理员身份运行”。

At the prompt, type the following command (replacing “PassLength” with the minimum password length you want to apply):

在提示符下,键入以下命令(将“ PassLength”替换为要应用的最小密码长度):

net accounts /minpwlen:PassLength

Press the Enter key, and you’ll see a prompt telling you the command completed successfully.

按Enter键,您将看到提示您命令成功完成的提示。

Note: While you can technically choose anything from 1-20 characters in length, try to choose something that provides adequate security and doesn’t make it too difficult for users to remember their passwords.

注意:虽然从技术上讲,您可以选择长度在1到20个字符之间的任何内容,但是请尝试选择能够提供足够安全性并且不会使用户记住密码的麻烦的内容。

Now, if you want to make sure it’s been applied, type in the following command and then press the Enter key to check:

现在,如果要确保已应用它,请键入以下命令,然后按Enter键进行检查:

net accounts

To remove minimum password length, type in the following command to remove mandatory passwords for local accounts:

要删除最小密码长度,请键入以下命令以删除本地帐户的必需密码:

net accounts /minpwlen:0

To make your accounts even more secure, you can enforce a maximum password age, which gets users to generate a new password after a length of time.

为了使您的帐户更加安全,您可以强制设置最长密码使用期限,使用户可以在一段时间后生成新密码。

专业版和企业版用户:通过组策略设置最小密码长度 (Pro and Enterprise Users: Set a Minimum Password Length Via Group Policy)

For anyone that doesn’t want to mess around with Command Prompt or if you feel more comfortable with a graphical interface, Windows 10 Pro and Enterprise users can take advantage of the Local Group Policy Editor. It’s a pretty powerful tool, so if you’ve never used it before, it’s worth taking some time to learn what it can do.

对于不想弄乱命令提示符或对图形界面更满意的人,Windows 10 Pro和Enterprise用户可以利用本地组策略编辑器。 这是一个非常强大的工具,因此,如果您以前从未使用过它,那么值得花一些时间来学习它可以做什么。

Also, if you’re on a company network, do everyone a favor and check with your admin first. If your work computer is part of a domain, it’s also likely that it’s part of a domain group policy that will supersede the local group policy, anyway.

另外,如果您在公司网络中,请给所有人一个帮助,并首先与您的管理员联系。 如果您的工作计算机是域的一部分,则它也很可能是域组策略的一部分,无论如何,该组策略将取代本地组策略。

You should also make a System Restore point before continuing. Windows will probably do this automatically when you install the Anniversary Update. Still, it couldn’t hurt to make one manually–that way, if something goes wrong, you can always rollback.

您还应该在继续之前创建系统还原点。 安装周年更新时,Windows可能会自动执行此操作。 尽管如此,手动制作也不会有任何伤害–这样,如果出现问题,您可以随时回滚。

First, launch the group policy editor by pressing Windows+R, typing “gpedit.msc” into the box, and then pressing the Enter key.

首先,通过按Windows + R,在框中键入“ gpedit.msc”,然后按Enter键,启动组策略编辑器。

Navigate to Computer configuration > Windows settings > Security settings > Account policies > Password policy.

导航到计算机配置> Windows设置>安全设置>帐户策略>密码策略。

Once here, locate the setting “Minimum Password Length” and double-click on it.

在此处找到“最小密码长度”设置,然后双击它。

From the properties menu that opens, type in the minimum password length you want to apply and click “OK” when you finish.

在打开的属性菜单中,输入要应用的最小密码长度,然后在完成后单击“确定”。

As a bonus, if you want to enable password complexity requirements, you can make users create a much more secure password that must meet specific criteria. Windows enforces these complexity requirements when users next change or create passwords.

另外,如果要启用密码复杂性要求,可以使用户创建必须满足特定条件的安全得多的密码。 当用户下次更改或创建密码时,Windows会强制执行这些复杂性要求。

If enabled, passwords must meet the following criteria:

如果启用,密码必须符合以下条件:

  • Not contain the user’s account name or parts of the user’s full name that exceed two consecutive characters.

    不包含用户的帐户名或超过两个连续字符的用户全名的一部分。
  • Be at least six characters in length.

    长度至少为六个字符。
  • Contain characters from three of the following four categories:

    包含以下四个类别中的三个类别的字符:

    • English uppercase characters (A through Z).

      英文大写字母(A到Z)。
    • English lowercase characters (a through z).

      英文小写字母(a到z)。
    • Base 10 digits (0 through 9).

      以10为基数(0到9)。
    • Non-alphabetic characters (for example, !, $, #, %).

      非字母字符(例如,!,$,#,%)。

Double-click “Password must meet complexity requirements” to open up the properties menu.

双击“密码必须满足复杂性要求”以打开属性菜单。

When the properties menu opens, click the radio button next to “Enabled” and then select the “OK” button when you’re finished.

当属性菜单打开时,单击“启用”旁边的单选按钮,然后在完成后选择“确定”按钮。

That’s all there is to it. You can now close the Group Policy Editor. Changes made to this policy become active immediately and don’t require a restart of your device.

这里的所有都是它的。 现在,您可以关闭组策略编辑器。 对该策略所做的更改将立即生效,无需重启设备。

翻译自: https://www.howtogeek/509156/how-to-set-a-minimum-password-length-in-windows-10/

本文标签: 长度最小密码如何在Windows