Check Windows activation status on a workstation

Prev Next

Verify Windows licensing state using GUI, slmgr, and PowerShell.

Complexity: Beginner. Impact: troubleshooting + licensing + endpoint + windows.

Why use this workflow

Confirming Windows activation is a routine troubleshooting step when users report watermark messages ("Activate Windows"), missing personalization settings, or after hardware changes, reimaging, or a key swap. An unactivated Windows installation can also block Windows Update features, BitLocker provisioning under some policies, and compliance reporting.

Run this workflow when:

  • A user reports an "Activate Windows" watermark or nag dialog.
  • A machine has just been reimaged, joined to the domain, or had its motherboard replaced.
  • You are auditing fleet compliance before a Microsoft licensing true-up.
  • MDM/Intune reports a device as non-compliant for licensing.

Expected outcomes

After following this workflow you will be able to:

  • Determine whether Windows is activated, in grace period, in notification mode, or unlicensed.
  • Identify the activation channel (Retail, OEM, Volume/KMS, or MAK).
  • Retrieve the partial product key and activation ID for escalation.
  • Collect a standardized activation report suitable for ticket notes.

Risks and considerations

Cautions

  • Do not run slmgr /rearm unless you specifically intend to reset the activation timer. It is limited to a small number of uses per image.
  • Avoid slmgr /upk (uninstall product key) on production machines. It will deactivate Windows immediately.
  • Displaying full product keys may violate your organization's data handling policy. The commands below intentionally show only the last five characters.
  • On KMS-activated devices, an activation failure may simply mean the device cannot currently reach the KMS host. Check network/VPN before escalating to license replacement.
  • Activation state queried remotely requires administrative rights on the target device and WinRM or PS Remoting enabled.

Required permissions

PermissionWhy it's needed
Local Administrator on target deviceRequired to run slmgr.vbs and query the SoftwareLicensingProduct WMI class with full detail.
WinRM / PowerShell Remoting enabledNeeded only if you are checking activation on a remote workstation rather than locally.

Ask Dex

Paste the prompt into a Dex conversation.

Prompt for IT admins

Check the Windows activation status on {device_name}. Report the license state, activation channel (Retail/OEM/KMS/MAK), partial product key, and any grace period remaining. If the device is not activated, identify the error code and recommend next steps.

How an end user can ask Dex

My computer keeps showing an 'Activate Windows' message in the corner - is something wrong with my license?

Manual steps (admin center)

  1. On the target workstation, press Win + I to open Settings.
  2. Go to System > Activation (Windows 11) or Update & Security > Activation (Windows 10).
  3. Review the Activation state field. Expected values:
    • Active: Windows is licensed and activated.
    • Not active: Activation failed; an error code (e.g., 0xC004F074) will be shown.
  4. Expand the Activation state tile to view the edition (e.g., Windows 11 Pro) and the activation method (Digital license, Product key, or Organization's activation service).

Quick check via Run dialog

  1. Press Win + R, type slmgr.vbs /xpr, and press Enter.
  2. A dialog will report one of:
    • The machine is permanently activated.
    • Will expire on [date]: typical for KMS-activated devices (180-day renewal).
    • Notification mode: activation has failed or grace period has ended.

Microsoft Graph API

Not applicable for this workflow. Windows activation status is a local licensing state exposed through WMI/slmgr on each device. There is no Microsoft cloud REST API that reports per-device Windows activation. If you manage devices via Intune, you can view the Windows edition and license type under Intune > Devices > select the device > Hardware, but the authoritative activation state is retrieved on-device using the PowerShell approach below.

PowerShell

Run an elevated PowerShell session on the target workstation:

# Human-readable activation status
slmgr.vbs /xpr

# Detailed license info: channel, partial key, expiration
slmgr.vbs /dli

# Full license info (all installed SKUs)
slmgr.vbs /dlv

Structured query via CIM/WMI

For scripting and reporting, query the SoftwareLicensingProduct class and filter to the installed Windows SKU:

Get-CimInstance -ClassName SoftwareLicensingProduct |
  Where-Object { $_.PartialProductKey -and $_.Name -like 'Windows*' } |
  Select-Object Name, Description, LicenseStatus, PartialProductKey, GracePeriodRemaining

LicenseStatus values:

  • 0: Unlicensed
  • 1: Licensed (activated)
  • 2: Out-of-Box Grace
  • 3: Out-of-Tolerance Grace
  • 4: Non-Genuine Grace
  • 5: Notification
  • 6: Extended Grace

Remote check

To check a remote workstation, wrap the query in Invoke-Command:

Invoke-Command -ComputerName 'WKSTN-01' -ScriptBlock {
  Get-CimInstance SoftwareLicensingProduct |
    Where-Object { $_.PartialProductKey -and $_.Name -like 'Windows*' } |
    Select-Object PSComputerName, Name, LicenseStatus, PartialProductKey
}