Open the start menu.
Type in cmd.
Right-click on the option cmd, and choose “Run as administrator”.
If prompted, click on Yes or Continue to continue.
In the black window that opens, type slmgr -rearm exactly as shown here.
Press Enter on your keyboard.
A message will appear saying Command completed successfully. Restart your system. Restart your computer.