-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Gaming
- Gaming Notebooks
- How to reinstall Windows after Linux

Create an account on the HP Community to personalize your profile and ask a question
12-03-2018 12:37 AM
Hello
I had my Laptop with preintalled windows. Recently I have installed and tried different versions of Linux. Now I want to get back to Windows. How do I reinstall Windows as I donot have the product key and from where do i download Windows from.
A little help would be most generous. Thank you.
12-03-2018 02:47 AM
Hi
A tad tricky,
Doing research, and none of the methods are mine, I have some, simple single lines of code that will list the same value for your Windows 10 Product Key… Two for Windows 10 and one for Linux.
W10 Using cmd.exe as an Administrator (copy and paste accordingly).
wmic path softwarelicensingservice get OA3xOriginalProductKey >> c:\ProdKey.txt
Creates a text file called ProdKey.txt on your C:\ area.
Next is a PowerShell command, as Administrator...
(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey
but it will run within W10 using cmd.exe as an Administrator.
powershell (Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey
Last, but not least....
Linux@Lubuntu:~$ sudo cat /sys/firmware/acpi/tables/MSDM | strings | tail -n 1
https://www.microsoft.com/en-us/software-download/windows10
https://www.microsoft.com/en-us/software-download/windows10ISO
If in doubt please ask.

