-
Open an Elevated PowerShell Prompt
- Search for "PowerShell" in the Start menu.
- Right-click on "Windows PowerShell" and select Run as Administrator.
-
Run the Command
- In the elevated PowerShell window, enter:
- In the elevated PowerShell window, enter:
(Get-CimInstance -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey