Products
GG网络技术分享 2025-11-12 21:42 13
powershell
$ProductKey = "YOURPRODUCTKEY_HERE" # 替换为您的产品密钥

$licensingStatus = Get-WmiObject -query 'select * from SoftwareLicensingService' Write-Host "当前激活状态:" $licensingStatus
Write-Host "正在输入产品密钥..." slmgr.vbs /ipk $ProductKey
Write-Host "正在激活系统..." slmgr.vbs /ato
if { Write-Host "系统激活成功!" } else { Write-Host "系统激活输了请检查密钥是不是正确或联系 Microsoft 支持团队。" }
确保将 YOUR_PRODUCT_KEY_HERE 替换为您实际的产品密钥呃。此脚本将施行以下操作:
请在运行此脚本之前确保您的 PowerShell 周围和产品密钥正确无误。
Demand feedback