🔑 Tool Tiện ích Windows

Kiểm tra bản quyền Windows & Office

Xem Windows, Office đã kích hoạt chưa, loại key (Retail/OEM/Volume), 5 ký tự cuối của key và ngày hết hạn — chỉ đọc thông tin, không thay đổi hệ thống.

⬇ Tải file tool
CMD
Bản chạy 1 click (khuyên dùng) kiem-tra-ban-quyen-windows-office.cmd 1.7 KB v1.0 Cập nhật 10/11/2026 ⬇ 238
Cách chạy
  1. Nhấp đúp file kiem-tra-ban-quyen-windows-office.cmd.
  2. Nếu hiện Windows protected your PC: bấm More info → Run anyway (file tải từ Internet).
  3. Dùng bản .ps1? Máy đặt ExecutionPolicy AllSigned/Restricted sẽ chặn (mở lên rồi tắt). Chạy bằng lệnh: powershell -ExecutionPolicy Bypass -File .\kiem-tra-ban-quyen-windows-office.ps1

⚠ Đọc kỹ nội dung script trước khi chạy — nội dung đầy đủ ở khung bên dưới.

Mã nguồn / Script powershell
# Kiểm tra trạng thái bản quyền Windows & Office — CHỈ ĐỌC, không thay đổi hệ thống
$statusText = @{ 0='Unlicensed (chưa có bản quyền)'; 1='Licensed (đã kích hoạt)'; 2='OOB Grace'; 3='OOT Grace';
                 4='Non-Genuine Grace'; 5='Notification (chưa kích hoạt)'; 6='Extended Grace' }

function Show-License($appId, $title) {
    Write-Host "`n=== $title ===" -ForegroundColor Cyan
    $items = Get-CimInstance SoftwareLicensingProduct -Filter "ApplicationID='$appId' AND PartialProductKey IS NOT NULL"
    if (-not $items) { Write-Host "Không tìm thấy key nào." -ForegroundColor Yellow; return }
    foreach ($p in $items) {
        $exp = if ($p.GracePeriodRemaining -gt 0) { (Get-Date).AddMinutes($p.GracePeriodRemaining).ToString('dd/MM/yyyy') } else { 'Vĩnh viễn / không áp dụng' }
        [pscustomobject]@{
            'Sản phẩm'     = $p.Name
            'Kênh'         = $p.ProductKeyChannel
            '5 ký tự cuối' = $p.PartialProductKey
            'Trạng thái'   = $statusText[[int]$p.LicenseStatus]
            'Hết hạn'      = $exp
        } | Format-List
    }
}

# Windows
Show-License '55c92734-d682-4d71-983e-d6ec3f16059f' 'WINDOWS'
# Office 2013 trở lên (bản MSI / Volume)
Show-License '0ff1ce15-a989-479d-af46-f275c6370663' 'OFFICE'

# Office Click-to-Run / Microsoft 365
$c2r = Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration' -ErrorAction SilentlyContinue
if ($c2r) {
    Write-Host "`nOffice Click-to-Run: $($c2r.ProductReleaseIds) — phiên bản $($c2r.VersionToReport)"
    Write-Host "Microsoft 365: mở Word > File > Account để xem tài khoản cấp bản quyền."
}
Read-Host "`nNhấn Enter để đóng"

Tool kiểm tra được gì?

MụcÝ nghĩa
Trạng tháiLicensed = đã kích hoạt hợp lệ; Notification / Grace = chưa kích hoạt hoặc sắp hết hạn
Kênh (Channel)Retail (mua lẻ), OEM (theo máy), Volume:MAK/KMS (doanh nghiệp)
5 ký tự cuốiĐối chiếu với key công ty đã mua
Ngày hết hạnKMS thường gia hạn 180 ngày; bản quyền vĩnh viễn hiển thị permanently activated

Cách dùng

  1. Bấm Tải file tool → được kiem-tra-ban-quyen-windows-office.ps1
  2. Chuột phải → Run with PowerShell (không cần quyền admin)
  3. Đọc kết quả phần WINDOWS và OFFICE

Lệnh tra nhanh không cần tool

slmgr /dli      :: thông tin bản quyền Windows
slmgr /xpr      :: ngày hết hạn kích hoạt

Office (MSI/Volume): cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus

Microsoft 365: mở Word → File → Account để xem tài khoản đang cấp bản quyền.

⚠️ Nếu kết quả là Notification hoặc key không khớp với key công ty — liên hệ bộ phận mua hàng để mua bản quyền hợp lệ.

Bình luận (0)

Bạn có thể tự xoá bình luận của mình trên trình duyệt này.

Bài liên quan

💙 Tool Tiện ích Windows

Tool phân tích lỗi màn hình xanh (BSOD)

Liệt kê các lần màn hình xanh gần đây, mã lỗi (bugcheck), các lần tắt máy đột ngột, file minidump và gợi ý cách xử lý theo từng mã lỗi.

tool-phan-tich-loi-man-hinh-xanh-bsod.ps1
# Phân tích màn hình xanh (BSOD) — chạy với quyền Administrator để đọc đủ nhật ký
$tips = [ordered]@{
    '0x000000ef' = 'CRITICAL_PROCESS_DIED — file hệ thống hỏng: chạy sfc /scannow và DISM /Online /Cleanup-Image /RestoreHealth'
👁 722 ⬇ 273 ⬇ Chi tiết →
🧾 Tool Tiện ích Windows

Script kiểm tra nhanh thông tin máy tính (PowerShell)

Xuất tên máy, hệ điều hành, CPU, RAM, ổ cứng, IP, MAC và số Serial chỉ với một lệnh — tiện cho kiểm kê tài sản IT.

script-kiem-tra-thong-tin-may-tinh.ps1
$cs   = Get-CimInstance Win32_ComputerSystem
$os   = Get-CimInstance Win32_OperatingSystem
$cpu  = Get-CimInstance Win32_Processor | Select-Object -First 1
👁 1.5K ⬇ 344 ⬇ Chi tiết →
🖨️ Tool Công cụ mạng

Sửa lỗi kết nối máy in share: 0x0000011b, 0x00000709, 0x0000007c

Script xử lý các lỗi "Windows cannot connect to the printer" phổ biến khi kết nối máy in chia sẻ trong LAN — chạy trên máy chủ chia sẻ hoặc máy con.

sua-loi-ket-noi-may-in-share-11b-709.ps1
# Sửa lỗi kết nối máy in chia sẻ — cần quyền Administrator
# Nhấp đúp bản .cmd để chọn chế độ, hoặc chạy trực tiếp:
#   .\sua-loi-ket-noi-may-in-share-11b-709.ps1 -Role Client -Printer \\PC-KETOAN\Canon2900
👁 1.4K ⬇ 617 ⬇ Chi tiết →
🦠 Tool Bảo mật & Diệt virus

Tool quét virus bằng Microsoft Defender (có menu)

Cập nhật mẫu virus, chọn quét nhanh / toàn bộ / USB / quét ngoại tuyến, rồi liệt kê mối đe doạ đã phát hiện — dùng Defender có sẵn trên Windows, miễn phí.

tool-quet-virus-microsoft-defender.ps1
# Quét virus bằng Microsoft Defender — chạy với quyền Administrator
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole('Administrators')) {
    Start-Process powershell "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit
👁 916 ⬇ 382 ⬇ Chi tiết →