Step 1
Open a administrator Command Prompt(cmd.exe)
![](https://blog.andy-sec.com/storage/2023/07/001_start_admin_cmd.png)
Step 2
If prompted by UAC, Click Yes.
![](https://blog.andy-sec.com/storage/2023/07/002_UAC.png)
Step 3
Check current status by running the command below.
slmgr.vbs -dlv
A pop-up window will appear and current status is displayed.
![](https://blog.andy-sec.com/storage/2023/07/003_Run_check_command.png)
Step 4
Rearm Windows trial license by running the command below.
slmgr.vbs -rearm
After pop-up window shows “Command completed successfully”, restart the machine.
![](https://blog.andy-sec.com/storage/2023/07/005_Success.png)
Step 5
After restart, re-run command in Step3. And the expiration date has be renewed.
![](https://blog.andy-sec.com/storage/2023/07/006_Check_Reset_Successful.png)