1.You need a Windows 10 DVD or ISO image for that. If you don't have one get it from here. Download the tool from Microsoft's website to create the ISO image. Make sure you pick the right architecture and version.
2.Burn the ISO, mount it or extract it.
3.Navigate to the folder \Windows\x64\sources or P:\Windows\x32\sources and drag&drop the file gatherosstate.exe to the desktop.
4.Run the file afterwards. It creates GenuineTicket.xml on the desktop. This file is needed so copy it to a USB drive or other location.
5.Run a clean install of Windows 10 afterwards on the system. Make sure you skip the product key.
6.Once you are done and in Windows 10, copy the file GenuineTicket.xml to C:\ProgramData\Microsoft\Windows\ClipSVC\G
7.The folder is hidden by default. If you cannot see it, select File > Options > View > Show hidden files, folders and drives in File Explorer.
8.Reboot the PC.