To set a security policy in Windows, you need to follow the following steps: Open the "Security Policy Snap-in"; select the policy category to be managed (for example, local policy, account policy); browse the policy list and double-click the policy to be modified; Adjust settings as needed; click OK to save changes.
![如何设置 Windows 安全策略?](https://img.php.cn/upload/article/000/887/227/171197432942518.jpg)
How to set Windows security policy
Step 1: Open the security policy snap-in
- Press Win R and enter " secpol.msc" and press Enter.
Step 2: Select a policy category
Step 3: Browse and modify the policy
- In the right pane, browse the list of policies.
- Double-click the policy you want to modify, and then adjust the settings as needed.
- For example, you can set a password expiration time, enable account lockout, or configure firewall rules.
Step 4: Save changes
- After completing the modification, click "OK" to save the changes.
Common security policy settings
Password policy
- Minimum password length: Specify the minimum number of characters required in a password.
- Password complexity: Passwords are required to contain a combination of numbers, uppercase letters, and lowercase letters.
- Password expiration time: Set the time period during which the password must be updated before expiration.
Account lockout policy
- Account lockout threshold: Specify the number of attempts allowed to enter an incorrect password within a certain period of time.
- Account lock duration: Specify the period of time after the account is locked.
Restricted Group Policy
- User Rights Assignment: Specify user groups or users that are allowed to perform specific actions.
- Software restriction policy: Restrict users from running or installing specific programs.
- Audit policy: Configure options for logging security events.
The above is the detailed content of How to set Windows security policy?. For more information, please follow other related articles on the PHP Chinese website!