Step 1: Click on Start Menu Bar and then type cmd
Step 2: Right-click on CMD and select Run As Administrator
Step 3: Type the below commands:
slmgr -rearm
Step 4: You should see a success message. If not, most probably you have reached your limit for the number of times you can reset the trial.
Step 5: Restart your computer and you should now have 180 days again.
Note: You can Reset the Windows trial for a limited number of times.