Windows evaluation license expiry
Use this runbook for WindowsEvaluationLicenseExpiresIn30Days,
WindowsEvaluationLicenseExpiresIn7Days,
WindowsEvaluationLicenseExpiresIn2Days,
WindowsEvaluationLicenseMetadataUnavailable and
WindowsEvaluationLicenseMetricsStale and
WindowsEvaluationLicenseMetricsMissing.
What is monitored
The Windows monitoring installer enables the windows_exporter textfile
collector and installs a scheduled PowerShell collection task. The task reads
the Windows OS edition and the EvaluationEndDate property of the OS product
from the SoftwareLicensingProduct WMI class. It publishes the expiry as a
Unix timestamp. It does not read or publish product keys.
The task runs at startup and every six hours. The expiry alerts use non-overlap windows: warning from 7–30 days, high from 2–7 days, and critical in the final 48 hours or after expiry. These are operational lead times, not a substitute for license administration.
Verify the Windows edition and expiry
Run from an elevated PowerShell prompt:
Get-ItemPropertyValue `
-LiteralPath 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' `
-Name EditionID
Get-CimInstance -ClassName SoftwareLicensingProduct `
-Filter "ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f'" |
Where-Object { $_.PartialProductKey -and -not $_.LicenseIsAddon } |
Select-Object Name, Description, LicenseStatus, EvaluationEndDate
For evaluation editions, confirm that EditionID ends in Eval and that the
OS licensing product exposes a non-empty EvaluationEndDate.
Verify collection and exporter metrics
Get-ScheduledTask -TaskName 'Metis Windows Evaluation License Metrics'
Get-ScheduledTaskInfo -TaskName 'Metis Windows Evaluation License Metrics'
Get-Content 'C:\Program Files\windows_exporter\textfile_inputs\windows-evaluation-license.prom'
Invoke-WebRequest -UseBasicParsing http://127.0.0.1:9182/metrics |
Select-String 'windows_os_license_info|windows_os_evaluation_license'
The exact exporter installation directory may differ if it was customized.
Response
- Confirm the affected resource and its expiry date in the alert details.
- Coordinate with the platform/license owner to obtain and apply the appropriate production license or convert the evaluation installation to a supported licensed edition.
- Follow Microsoft's supported edition-conversion procedure for the installed Windows Server version. Do not attempt to extend an evaluation period by modifying licensing registry data or deleting licensing files.
- After conversion, verify the edition and licensing status. The evaluation expiry alert should resolve when the host no longer reports an evaluation edition.
Collection failures
For metadata-unavailable alerts, inspect the WMI query and confirm the OS product
returns EvaluationEndDate. For stale metrics, inspect the scheduled task's
last result and Windows Task Scheduler/PowerShell logs. The previous .prom
file is retained when a collection fails, so its collection timestamp becomes
stale rather than being refreshed with fabricated data.