N-central Troubleshooting
Windows License Status Service
Last Modified
Thu Jun 18 13:07 GMT 2020
Description
- This article provides basic information about the amp based Windows License Status service.
Environment
- N-able N-central
Solution
This is an AMP based service that queries the windows WMI class SoftwareLicensingProduct. You can test this service by running the command below, and see what returns.
Get-WmiObject -query "Select LicenseStatus,name,Description,GenuineStatus from SoftwareLicensingProduct where LicenseStatus!=0 "
The service then returns the values for Description, Name, and GenuineStatus straight from WMI, except for LicenseStatus. This has mappings to it so that it gets the correct values.
Mappings:
switch ($objItem.LicenseStatus)
{
0 {$LicenseStatus = "Unlicensed"}
1 {$LicenseStatus = "Licensed"}
2 {$LicenseStatus = "OOBGrace"}
3 {$LicenseStatus = "OOTGrace"}
4 {$LicenseStatus = "NonGenuineGrace"}
5 {$LicenseStatus = "Notification"}
6 {$LicenseStatus = "ExtendedGrace"}
default {$LicenseStatus = "UnknownLicenseStatus"}
- Status Unknown - Display all products that the VAMT has not collected or cannot collect license status for. This includes any computers that have been added but whose installed products have not yet been discovered.
- Licensed - Display all products that have been activated by a valid product key.
- Not Licensed - This is the parent node for all products whose licensing status is not Licensed:
- Out-of-Box (OOB) Grace - Display all products that are still within the initial grace period allowed by Windows, Windows Server or Microsoft Office 2010 prior to required activation.
- Non-Genuine Grace - Applicable only to systems running Windows Vista RTM edition. Indicates the system has failed online genuine validation and is in 30 day grace period.
- Out of Tolerance (OOT) Grace - Display all products that have had hardware or BIOS changes significant enough to require reactivation, and all KMS client products that have not renewed their activation within the 180 days activation renewal period.
- Unlicensed - Activation status cannot be determined. It may indicate tampering of activation related binaries and configuration values. Applies only to Windows Vista RTM or retail editions of Office 2010 products.
- Notification - Display all products that are either past the activation grace period or failed validation. These products will be subject to a notification experience but continue to run with full functionality.
- Unmanaged Products - Display all discovered products that do not support activation methods managed by the VAMT. This only includes Windows XP SP2 or later and Windows Server 2003 SP1 or later installations.