KeyManagement Service Discovery

Microsoft.KMS.ServerRole.Discovery (Discovery)

This object discovery discovers Key Management Service which is implemented as sppsvc.exe (Microsoft Windows 2003 Server or Microsoft Windows 2008 Server R2) or slsvc.exe (Microsoft Windows 2008 Server or Microsoft Windows Vista)

Knowledge Base article:

Summary

This object discovery discovers Key Management Service which is implemented as sppsvc.exe on Microsoft Windows 2003 Server or slsvc.exe on Microsoft Windows 2008 Server or Microsoft Windows Vista

Configuration

Only activated instance of Key Management Service is discovered. The service can be activated online using following script :

cscript C:\windows\system32\slmgr.vbs /ato

or it can be activated offline using obtained volume key as follows :

cscript C:\windows\system32\slmgr.vbs /ipk <KMS Key>

If no error was reported, the KMS host is now ready to be used by KMS clients for activation. Additional configuration is optional and will usually not be required. You can confirm your KMS license state and settings by running:cscript C:\windows\system32\slmgr.vbs /dli

Element properties:

TargetMicrosoft.Windows.Server.OperatingSystem
EnabledTrue
Frequency86400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:
  • Microsoft.KMS.ServerRole
    • ProcessID
    • ImageName
    • FilePath
    • ServiceName
    • ServiceState
    • KMSServiceVersion
    • KMSServicePath
    • DisplayName

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.KMS.ServerRole.Discovery.DS Default

Source Code:

<Discovery ID="Microsoft.KMS.ServerRole.Discovery" Enabled="true" Target="Windows!Microsoft.Windows.Server.OperatingSystem" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.KMS.ServerRole">
<Property PropertyID="ProcessID"/>
<Property PropertyID="ImageName"/>
<Property PropertyID="FilePath"/>
<Property PropertyID="ServiceName"/>
<Property PropertyID="ServiceState"/>
<Property PropertyID="KMSServiceVersion"/>
<Property PropertyID="KMSServicePath"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.KMS.ServerRole.Discovery.DS">
<IntervalSeconds>86400</IntervalSeconds>
<SyncTime/>
<ComputerID>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerID>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>