News

How to force password change in windows periodically

Table of contents:

Anonim

Security is very important in the digital age and one of the main measures for this is to use strong passwords, however this may not be enough to guarantee maximum security. The other extremely important point is changing the password on a regular basis, a measure that not many users unfortunately pay attention to. How to force password change in Windows periodically.

Learn to force password change on Windows periodically

The Windows password is one of the most important since with this we can prevent unauthorized access to our computer, the first thing the operating system will do is ask us for the key and if we do not enter it, we will be able to do absolutely nothing. Windows also offers us the possibility of forcing the password change from time to time to further improve the security of our computers.

You can now download and install Windows 10 Creators Update RTM

This last function is not accessible through the graphical user interface so many of you will not know of its existence until you have reached this post, in order to use this important tool we are going to need the command console, something to which Linux users are very used to it, but for Windows users it is quite unknown.

First of all we have to open a command window with administrator permissions:

At this point we have two options, we can make the password change be requested for all users of the team or only for one of them. If we want the change to be for all users, we will introduce the following command:

wmic UserAccount set PasswordExpires = True

If we want the change to be for a single user, we will introduce:

wmic UserAccount where Name = 'User' set PasswordExpires = True

Logically in the second case we have to replace 'User' with the name of the user in question.

The next case is to establish the periodicity of the password change, this is expressed in days and we will do it using the following command where XX is replaced by the number of days:

strong> net accounts / maxpwage: XX

To check that everything is fine we introduce:

> net accounts

If at any given time we want to cancel the periodicity of the password change, enter the following command:

strong> PasswordExpires = False

News

Editor's choice

Back to top button