Extract Windows Software License (Key) via PowerShell

Asphyxia

Owner
Administrator
Apr 25, 2015
1,845
2
2,199
327
Code:
wmic path softwarelicensingservice get OA3xOriginalProductKey > key.txt

Now this key.txt file should contain the license key, useful if you want to quickly print your Microsoft Windows License.

If anyone has a better way, feel free to share!

Want even more information?
Code:
wmic path softwarelicensingservice get *

Note: This also works in cmd (Command Prompt)... if you want a one-liner to copy and paste into run (Windows Key + R):
Code:
cmd.exe /k wmic path softwarelicensingservice get *
 
Last edited:
  • Like
Reactions: KUL
Top