如何使用 PowerShell 找出 Windows 产品密钥?
Windows 产品密钥可以通过 PowerShell 或 CMD 检索。要使用 PowerShell 检索产品密钥,我们需要查询 SoftwareLicesingService 类,其中有一个名为 OA3xOriginalProductKey 的属性,用于存储产品密钥。
示例
Get-WmiObject -query `select * from SoftwareLicensingService' | Select OA3xOriginalProductKey
输出
OA3xOriginalProductKey ---------------------- BBBBB-CSDSC-EESSR-KKIDS-AAAAA
我们还可使用 cmd (如下所示)查询此 WMI 类。
wmic path softwarelicensingservice get OA3xOriginalProductKey
注意:该方法可能无法适用于所有 Windows 操作系统。上述方法已在 Windows 10 中测试过。
广告
数据结构
网络
关系数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP