Password Policy Script Generator

Configure password policy, force-change options, end-user notifications, a GPO name, and generate both an apply script and an undo/removal script. This version fixes the broken Generate button.
Industry Presets
Click any industry button to review the policy in a modal. Choose Accept & Apply to inject the settings into the form.
Target
Password Settings
Account Lockout
Force Password Change
End-User Notification
Script Options
Important: This page now includes a domain policy strategy selector so you can choose whether to use the existing Default Domain Policy path or create a new GPO object.
Note: Effective domain password/account lockout policy still comes from the default domain password policy itself. The “create new GPO object” option adds a separate GPO object for management and optional linking, while the default-only option avoids creating a new GPO object.
Apply Script
Click "Generate Both Scripts" to build your apply script.
Undo / Removal Script
Click "Generate Both Scripts" to build your undo script.