By default, Windows Server enforces password expiration policies that may prompt you to change your password every 42 days. If you want to stop these reminders (e.g. on a VPS where you’re the only user), you can disable them by updating the password policy.
Disable Password Expiration via Local Security Policy
Log in to your Windows Server 2022 VPS.
Press Windows Key + R, type:
secpol.msc
and press Enter.
3. In the Local Security Policy window, navigate to:
Account Policies → Password Policy
Double-click Maximum password age.
Change the value from 42 days to 0 (this means passwords never expire).
Click Apply → OK.