Free document and scripts
Password policy generator
for your team.

Create a password policy for your organization from NIST, PCI DSS or CIS presets. Adjust the rules, compare the selected settings and download a document plus scripts for Windows, Active Directory or Linux.

Start from a standard

Length and content

Reuse and expiry

Lockout

0 means locked until an administrator unlocks the account.

Document

Compare your selected settings

These checks compare the settings above with the tool’s reference presets. They do not inspect your systems or certify compliance.


            

Scripts change security settings. Read them, test on a non-production system first and keep an admin session open until you have verified the result.

How to use the generator

From a preset to a policy you can review.

  1. Choose a starting point

    Select a reference preset, then adjust length, reuse, expiry and lockout settings to suit your systems.

  2. Preview the document

    Enter your organization name and review the Policy tab. Read our guide to NIST password guidelines to understand the reference rules.

  3. Download each format

    The policy downloads as Markdown (.md), Windows and Active Directory scripts as PowerShell (.ps1), and Linux as a shell script (.sh). Select a tab, then Download.

Need individual account passwords? Use the random password generator or create a random passphrase for a secret you need to type.

Preparing a policy for a small business? Use our editable password policy example and rollout checklist to assign responsibilities, plan recovery and verify the deployed controls.

Standards at a glance

Why no policy passes all three.

NIST follows the research: length, screening and no forced changes. PCI DSS and CIS still ask for composition rules and rotation. Here is where they differ.

RuleNIST SP 800-63BPCI DSS 4.0CIS Windows
Minimum length15 (8 with MFA)1214
Composition rulesNot allowedLetters and numbersComplexity on
Scheduled expiryNot allowed90 days, unless MFA365 days or less
Password historyNot requiredLast 424 or more
Breached-password screeningRequiredNot specifiedNot specified
Lockout100 failures max10 tries, 30 minutes5 tries, 15 minutes

Simplified for clarity. Want the reasoning behind each NIST rule? Read NIST password guidelines in plain English.

Turn the generated template into a team policy

Name an owner, define which accounts are covered and review recovery, MFA and exceptions before distributing the document. The selected preset compares settings; it is not a certification that your organization meets a standard.

Use the small-business template and rollout checklist to plan the introduction. Review the generated Windows, Active Directory or Linux script and test it in an appropriate environment before applying it. Our fake-support call checklist also covers verifying requests to reset authentication.

Questions

Password policy FAQ

What should a modern password policy require?

For most organizations: a minimum of 15 characters for password-only accounts (8 when MFA is enforced), acceptance of at least 64 characters, screening against breached and common passwords, no forced periodic changes, no composition rules, support for password managers and paste, and limits on failed attempts. That is the NIST SP 800-63B approach.

Why do NIST and PCI DSS disagree on complexity and expiry?

NIST bases its guidance on research showing that composition rules and scheduled changes lead to predictable passwords. PCI DSS 4.0 still requires letters and numbers, and 90-day changes when a password is the only factor. If you are in scope for PCI DSS, enforcing MFA removes the expiry requirement, which gets you close to both.

Can I run the generated scripts as they are?

They are written to be safe and readable, with backups on Linux, but they change security settings. Read them first, run them on a test machine, and keep an administrator session open in case you need to roll back. Scripts need administrator (Windows) or root (Linux) rights.

Why can't Windows enforce lengths above 14 characters?

The classic Windows policy stops at 14. Recent versions (Windows 10 2004 and later, Server 2022 and later) can go higher once 'Relax minimum password length limits' is enabled, which the local script does for you. In Active Directory, use a fine-grained password policy, which the AD script creates.

Does the generator store or send my policy?

No. The policy and scripts are built in your browser. Nothing is uploaded, and the download is created locally.

Is this legal or compliance advice?

No. It is a strong, well-documented starting point based on public standards. Have your security and compliance owners review the final policy against the exact version of the standard you are audited on.