If you are using a Virtual Private Server (VPS) running Windows Server 2022 and encounter a password expiry prompt, here’s a step-by-step guide to changing the password:
1
Log in as Administrator: Ensure you are logged in as a user with administrative privileges to make changes to user accounts.
2
Password Expiry Notification: When a user’s password is about to expire or has already expired, they will receive a notification when they log in to the system. This notification will inform them that their password is expired or about to expire and prompt them to change it.
3
Changing Password via CTRL+ALT+END:
- If the password has already expired, the user will be forced to change their password immediately. They will see a message prompting them to press CTRL+ALT+END to change their password.
- The user should press CTRL+ALT+END and then click on Change a password. They will need to enter their old password and then enter a new password (according to any complexity requirements set by your organization).
- After entering the new password and confirming it, the user’s password will be changed, and the password expiry message will no longer appear.
4
Changing Password via PowerShell (Administrator):
- As an administrator, you can change a user’s password using PowerShell. Open a PowerShell window with administrative privileges.
- Use the following PowerShell command to change the password for a specific user (replace username with the actual username):
net user username password
e.g.: net user chartvps TempPass123%
-
After executing the command, the user’s password will be changed, and they can log in using the new password.
5Disable Password Expiry (Not Recommended): -
As a temporary measure, you can disable password expiry for a user account. However, this is not recommended for security reasons. Password expiry policies are essential for maintaining strong security practices.
-
If you choose to disable password expiry for a user, you can do so through Server Manager.
1Click on the Start menu and select Server Manager.2In Server Manager, click Tools in the upper-right corner, then select Computer Management.3In the left pane of Computer Management, expand Local Users and Groups, then click on Users.4Find the user account you want to modify in the list of users. Right-click on the account and select Properties.5In the User Properties window, under the General tab, check the box next to Password never expires.6Click Apply, then OK to save your changes.
Always ensure that users choose strong and unique passwords (12+ characters in length, non-dictionary, varying capitalization, mix of numbers, letters, symbols). Regular password changes are a recommended part of maintaining a secure Windows Server environment.
How to resolve password expiry messages if they come up (are enabled) in Windows