How to Configure Password Expiration for Local Accounts in Windows 10 and Windows 11

How to Configure Password Expiration for Local Accounts in Windows blog banner image

This step-by-step tutorial demonstrates how to configure password expiration for local accounts in Windows 10 and Windows 11. It includes instructions for enabling and disabling password expiration for any local user account in Windows, how to check its current status, and explains what happens when password expiration is disabled.

Preparation before changing local user password expiration settings

Whether you’re enabling or disabling password expiration for an account, you must be signed in with an administrator account, and before you make any changes to your Windows 10 or Windows 11 system configuration, you should take a full system backup.p

Note that to configure password expiry for Windows domain accounts you will need to use Group Policy.

Step-by-step instructions: How to configure password expiration in Windows 10 and Windows 11

This guide includes tutorials for turning password expiration on or off for Windows 10 and Windows 11 devices.

Note that using the Local Users and Groups snap-in (GUI) method is only available on the Pro, Enterprise, and Education editions of Windows — Home users will have to use the command line method.

How to enable or disable password expiration using the Local Users and Groups (GUI)

To configure password expiration for local accounts using the Local Users and Groups MMC snap-in (a graphical interface for managing user settings), follow these steps:

  • Right-click on the Start button
  • Select Run
  • Enter lusrmgr.msc into the Run dialog and press OK
  • Select Users from the navigation tree in the left pane of Local Users and Groups
  • Right-click on the user you want to enable or disable password expiration for and select Properties

Local users and groups window

  • To enable password expiration for the specified user, uncheck the Password never expires checkbox
  • To disable password expiration for the specified user, check the Password never expires checkbox
  • Click OK to confirm the change

Fill in the details in the Properties box

How to turn password expiration on or off using command-line tools

To turn on or turn off password expiration both in Windows 10 and Windows 11 using the command line, follow these steps:

  • Open an elevated Command Prompt or run PowerShell as Administrator
  • Enter the command wmic UserAccount where Name=”USERNAME” set PasswordExpires=True to enable password expiry for the specified local user account
  • Enter the command wmic UserAccount where Name=”USERNAME” set PasswordExpires=False to disable password expiry for the specified local user account

Note that you will need to replace the USERNAME text in the above commands with the username of the account you wish to turn password expiry on or off for.

Command to check password expiration status in Windows 10 and Windows 11

You can check the password expiration status for a user by running the command net user USERNAME (replacing USERNAME with the local account username). The command will output information about the user account, including when the Password expires, which will be set to Never if password expiry is disabled.

Background: Understanding password expiration

Password expiration means that a user needs to regularly change their Windows account password after a predefined interval. In Windows 10 and Windows 11, once the maximum password age is reached the user will need to change their password when they next log in.

By default, local accounts in Windows 10 and Windows 11 are set to not have their passwords expire. Enabling password expiry for an account will force that specific user to update their password once it reaches a certain age or when an administrator has specified that they must change their password the next time they log in.

Enforcing password expiration can enhance security by preventing the continued use of old passwords that may have appeared in a data breach or that have been shared or accidentally disclosed. However, there are potential drawbacks: enabling password expiration and forcing users to change their passwords too regularly can frustrate them, leading them to re-use old passwords, use easy-to-guess passwords, or write their passwords down.

How to change minimum and maximum password expiration age/limits

To configure the amount of time before the user has to change their password again, you can set minimum and maximum password age expiry limits. Once password expiry has been enabled, you can also force that user to change their password the next time they log in.

Windows password expiration use-cases and best practices

There are several scenarios where you may be required to enable password expiration for local user accounts:

  • On shared computers to discourage users from sharing accounts and passwords.
  • For accounts that are used by personnel that are regularly rotated.
  • For compliance reasons, for example Payment Card Industry Data Security Standard (PCI DSS) requires that users regularly change their passwords.

There are situations where it isn’t necessary to force users to regularly change their passwords, such as on personal devices that only have a single user.

When configuring password expiration for local accounts, and deciding on minimum and maximum password ages, you should consider the use case and what will encourage the best security practices from users. Forcing users to change their passwords too regularly (without reason) may discourage them from using strong passwords, or encourage them to seek workarounds like writing their passwords down or not locking their machine when it is not in use.

Password security and enabling and disabling password expiration in enterprise environments

Most large enterprises will configure password expiration both in Windows 10 and Windows 11 using Group Policy in a Windows Domain environment. Some businesses, however, do not use a Windows Domain, or rely on employees to bring their own devices (BYOD).

Securing the vast array of user devices and protecting your vital customer data requires a comprehensive mobile device management (MDM) solution. MDM by NinjaOne allows you to configure user account and security policies for Windows, Apple, Android, and Linux devices, whatever their form-factor and wherever they are located.

Next Steps

Building an efficient and effective IT team requires a centralized solution that acts as your core service deliver tool. NinjaOne enables IT teams to monitor, manage, secure, and support all their devices, wherever they are, without the need for complex on-premises infrastructure.

Learn more about Ninja Endpoint Management, check out a live tour, or start your free trial of the NinjaOne platform.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).