Extract Windows Software License (Key) via PowerShell

Asphyxia

Server Monkey
Administrator
Joined
Apr 25, 2015
Messages
1,206
Points
252
Age
26
Location
North America
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:

Top