Sometimes, you need to create a temporary account in Windows 11/10. It is similar to the Guest Account, but it expires. When the account expires, you will not be able to use it at all. That said, this is different from the Password Expiration of a user account. In Password expiration, the user will be prompted to change the password, and after that, the user account can be used again as usual. In this post, we are looking on a solution if you face — The user’s account has expired message on Windows 11/10.
The users account has expired on Windows 11/10
You can get rid of this situation using the Net User command. The command is built to set an expiration date for a user account, or completely turn off user account expiration.
- Turn off User Account Expiration using PowerShell
- Turn Off User Account Expiration in Active Directory.
1] Turn off User Account Expiration using PowerShell
1] Open PowerShell using WIN+X and then select Windows PowerShell (Admin).
2] The first thing you need is the exact username of the account for which the expiration has to be set. To get the users on Windows 10 computer, type and execute the command—net user. Copy the name.
3] Next, in the same PowerShell prompt, execute the command:
net user USERNAME /expires:never
Make sure to replace USERNAME with the correct username.
2] Turn Off User Account Expiration in Active Directory
If you need to have a temporary account, but do not want it to expire automatically, it is best to set the option right away. It can be done using the Administrative tool available for admin account in Windows 10.
1] In the Start search, type Administrative Tools, and when it appears open with administrator privileges.
2] Select Active Directory Users and Computers and open it.
3] On the left side, expand your domain, and select the node which says, Users.
4] Select the domain user account for which you want to change expiration settings. Right click and select properties.
4] Switch to the Account tab, and check the option which says set Account Expires to Never.
5] You can also choose to set the password as never expires in the same section.
In consumer copy of Windows, i.e., Windows 11/10 Pro and Home, there is no concept of a temporary account. Instead, you can use Guest Account to give temporary access.