Jump to content

How to set a temporary password on Windows 10


tarekma7

Recommended Posts

ox4P3zw.jpg

 

While many modern Windows 10 devices are now able to unlock with your fingerprint or face, older hardware still relies on a good old-fashioned password. However, it's likely you'll have stuck with the same password for many months or even years. That makes it easy to remember, but it's recommended that you change your password regularly in order to keep your device secure.

 

To make sure you don't forget, there is a way to set a temporary password in Windows 10, which expires after a set amount of time. Here's how it's done.

 

Why would I want a temporary password?


There are various situations where it may be appropriate. If you're usually the only person that uses your PC, you might rely on biometrics (fingerprint, face unlock) or go without a password altogether. However, in handing it over to tech support or a friend/family member, you can't be sure where that crucial information will end up. 

 

It's also a very effective way of ensuring you keep your device secure. It's recommended that you change as often as every 30 days to prevent hackers and other untrustworthy people from potentially gaining access. While that sort of frequency isn't necessary unless you think your device has been compromised, having a password that expires can help make sure you update it regularly. 

 

How to set a temporary password on Windows 10


The ability to set a temporary Windows 10 password only applies if you have a local account. If you're currently logging in with your Microsoft account password, check out how to set up Windows 10 without a Microsoft account.

 

Type 'Command Prompt' in the search bar next to the Start Menu


Choose 'Run as administrator' by right-clicking the option or selecting the option to the right of the results

 

T4Yalop.png


From the pop-up, click 'Yes' to allow it to make changes to your device


In the window that, copy and paste the following:


wmic UserAccount set PasswordExpires=True

 

rrecCww.png


Various lines of information should appear. Now, copy and paste the following and hit enter:


net accounts /maxpwage:72

 

dS3vpZn.png


You should see a message saying 'The command completed successfully'


To review the changes you've made, simply type 'net accounts' into the same window and hit enter

 

 

8zIx1I2.png

 

At the end of the 72-day period, you'll get a prompt saying you need to change your password. To set a temporary password for a specific user, enter the following information in Step 4:


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


Make sure you replace 'USERNAME' with the account name you'd like to set the password expiry for. 

 

To select a specific number of days for your temporary password, you'll need to be running Windows 10 Pro, Education or Enterprise. To do so:

 

Hit Windows Key + R to open the run command, then type 'gpedit.msc' and click OK


Head to Computer Configuration > Windows Settings > Security Settings > Account Policies > Password Policy and double-click 'Maximum password age'


Type a specific number of days in the box under 'Password will expire in:' and click OK


From this menu, you can also prevent older passwords being reused, set certain complexity requirements and specify a minimum length. 

 

SOURCE

Link to comment
Share on other sites


  • Replies 1
  • Views 1k
  • Created
  • Last Reply
Quote

... having a password that expires can help make sure you update it regularly ...

In the real world, asking people to change their password too often leads them to write it down next to the computer :dunno:

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...