PowerShell 技能连载 - Retrieving Windows Product Key
以下是获取当前 Windows 产品序列号的单行代码:
1 | (Get-WmiObject -Class "SoftwareLicensingService").OA3xOriginalProductKey |
PowerShell 技能连载 - Retrieving Windows Product Key
http://blog.vichamp.com/2019/01/18/retrieving-windows-product-key/