# ========================================================= # MAX Windows Toolkit - 检查 Windows 授权状态 # ========================================================= $Common = "C:\Setup\windows\lib\common.ps1" if (Test-Path $Common) { . $Common } Show-AdminWarn Write-Header "检查 Windows 授权状态" $Reg = Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" Write-Info "产品名称 : $($Reg.ProductName)" Write-Info "版本 ID : $($Reg.EditionID)" Write-Info "显示版本 : $($Reg.DisplayVersion)" Write-Info "内部版本 : $($Reg.CurrentBuild)" Write-Line Write-Section "KMS 服务器连接测试" Test-NetConnection kms.unvmax.com -Port 1688 Write-Section "激活到期信息" cscript //nologo "$env:windir\system32\slmgr.vbs" /xpr Write-Section "详细授权信息" cscript //nologo "$env:windir\system32\slmgr.vbs" /dlv