Many users of Windows VPS report that after a certain period, the system displays a "license expired" warning, followed by automatic restarts or shutdowns. In such cases, especially for Windows VPS used for testing or short-term purposes, it is possible to extend the license period up to 180 days.
The slmgr
commands are used to manage licensing operations in Windows operating systems. There are various slmgr parameters for restarting the evaluation period, performing license verification, and checking the remaining days.
To check the license status, use the following command:
slmgr /xpr
When this command is executed, a window opens showing whether your system license is permanent or how many days until it expires.
To restart the license period, use the following command:
slmgr -rearm
This command resets the license period by using one of the remaining trial rights on the system and restarts the 180-day period. The system must be restarted after the command is executed successfully.
shutdown /r /t 0
These operations can be applied a total of 3 times. Each restart grants a new 180-day period. This method is quite common, especially in VPS systems using 90-day trial versions.
In some cases, the "rearm" right may be exhausted. In this case, a new activation method is required, or a clean Windows installation should be performed. Additionally, more detailed license information can be displayed with the slmgr /dlv
command.
If shutdown and automatic restart problems are caused by Windows license warnings and verification issues, the above method provides a temporary solution.
If you have a genuine license key, you can add the license with the following command:
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /ato
The first command adds the license key, and the second command connects to Microsoft servers to initiate activation. A healthy network connection is required.
Thanks to these steps, you can continue to run your Windows VPS without it becoming unlicensed. However, it is strongly recommended that you purchase a valid license for continuous and commercial use.