$ echo 'hoge huga' | clip.exe
C:\> slmgr /dli
cmd 1)
C:\> wmic path softwarelicensingservice get OA3xOriginalProductKey
PowerShell2)
powershell "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey"
レジストリエディタで確認
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
ここへ移動して
BackupProductKeyDefault
の値を調べる
cmd 3)
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /dstatus
Microsoftアカウントで確認する
Microsoftアカウントに紐付けてインストールした場合は、Microsoftアカウントのサイトでプロダクトキーを確認することができる
Microsoftアカウントのサイトを開き →【サインイン】→【すべてのサブスクリプション】→【プロダクトキーの表示】
レジストリエディタで確認
\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Scenario\INSTALL
ここへ移動して
ProductKeys
の値を調べる4)