2. Enter gpedit.msc and confirm.
3. Open the Group Policy Editor Computer Configuration -windows Settings-Security Settings-Account Policy-Password Policy.
4. Double-click to enter the password policy.
5. Double-click the password to meet the complexity requirements, select Enable and confirm.
6. Double-click to enter the minimum password length, enter the settings and confirm.
7. Double-click to enter the maximum service life of the password, set the expiration days, and confirm.
8. Double-click to enter the minimum usage period of the password, set the expiration days, and then confirm.
9. Double-click to enter the mandatory password history, set the reserved number, confirm, and then exit to complete the change.