数据库用户密码长度修改
If you’re the administrator of a shared computer or a few in the office, you probably want to have the users change their password periodically for enhanced security. Here’s how to do it in Windows 7 & XP.
如果您是共享计算机的管理员或办公室中的一些管理员,则可能希望让用户定期更改其密码以增强安全性。 这是在Windows 7和XP中执行此操作的方法。
Note: This uses Local Security Policy which is not available in Home versions of Windows. These are local settings on machines not on a domain. Domain settings will take precedence over local settings.
注意:这使用本地安全策略,该策略在Windows的Home版本中不可用。 这些是不在域上的计算机上的本地设置。 域设置将优先于本地设置。
Changing Password Age in Windows 7
在Windows 7中更改密码年龄
Log in as Administrator and type Secpol.msc into the Search box of the Start Menu and hit Enter.
以管理员身份登录,然后在“开始”菜单的“搜索”框中键入Secpol.msc ,然后按Enter。
Local Security Policy opens. Navigate to Account Policies \ Password Policy and double-click on Maximum password age.
将打开“本地安全策略”。 导航到“帐户策略\密码策略”,然后双击“ 最长密码使用期限” 。
Here you can change the Maximum password age to what you want. By default it is 42 days, but you can change it from 1-999 days. When you’re finished, click OK and close out of Local Security Policy Editor.
您可以在此处将“最长密码使用期限”更改为所需的值。 默认情况下为42天,但您可以将其更改为1-999天。 完成后,单击“确定”,然后退出“本地安全策略编辑器”。
If you were set it to zero, the password would never expire.
如果将其设置为零,则密码将永不过期。
Changing Password Age in XP Professional
在XP Professional中更改密码年龄
While easy in Windows 7, XP gets a bit more tricky. First go to Start \ Run and type mmc and Enter.
在Windows 7中虽然很容易,但是XP变得有些棘手。 首先转到开始\运行,然后键入mmc,然后按Enter。
The Console opens and you want to go to File then select Add/Remove Snap-in…
控制台打开,您要转到“文件”,然后选择“ 添加/删除管理单元”…
Now click on the Add button…
现在点击添加按钮...
Scroll down and highlight Group Policy Object Editor…then click Add.
向下滚动并突出显示组策略对象编辑器…,然后单击添加。
Under Group Policy Object make sure it says Local Computer and click Finish.
在“组策略对象”下,确保其显示“本地计算机”,然后单击“完成”。
Now you will need to navigate to Local Computer Policy \ Computer Configuration \ Windows Settings \ Security Settings \ Account Policies \ Password Policy. Then as before double-click Maximum password age.
现在,您将需要导航到“本地计算机策略” \“计算机配置” \“ Windows设置” \“安全设置” \“帐户策略” \“密码策略”。 然后像以前一样,双击Maximum password age 。
Then change it to whatever you want it to be.
然后将其更改为您想要的任何内容。
Conclusion
结论
If you want to make users on your local machine(s) to change their passwords periodically, changing the password age is how to get it done. You should have users change their password regularly and encourage them to use strong passwords as well.
如果要使本地计算机上的用户定期更改其密码,则更改密码使用期限是完成密码的方法。 您应该让用户定期更改其密码,并鼓励他们也使用强密码。
数据库用户密码长度修改