Deactivate your product key:
slmgr /upkand wait for this to complete. This will uninstall the current product key from Windows and put it into an unlicensed state.
slmgr /cpkyand wait for this to complete. This will remove the product key from the registry if it’s still there.
slmgr /rearmand wait for this to complete. This is to reset the Windows activation timers so the new users will be prompted to activate Windows when they put in the key.
Activate your product key:
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX