Skip to content

Instantly share code, notes, and snippets.

@ryanmeasel
Created March 8, 2018 04:59
Show Gist options
  • Save ryanmeasel/ba269577e83f359fb586c03fd6b0d2fe to your computer and use it in GitHub Desktop.
Save ryanmeasel/ba269577e83f359fb586c03fd6b0d2fe to your computer and use it in GitHub Desktop.
Get product key from Windows install
# Run in powershell
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment