Open Settings > Update & Security > Activation > Click "Troubleshoot"
Open Command Prompt as administrator and copy-paste the following command followed by hitting the Enter key:
slmgr /ato
[If any recent hardware changes done to your system, then it can affect Windows Activation]