Remote Desktop Services Discovery

Microsoft.Windows.Server.10.0.RemoteDesktopServicesRole.Discovery (Discovery)

This object discovers all computers that are running a Remote Desktop Services role service.

Knowledge Base article:

Summary

This object discovers all computers running a Remote Desktop Services role service by doing a WMI query on the remote computer.

Element properties:

TargetMicrosoft.Windows.Server.10.0.Computer
EnabledTrue
Frequency86400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.Server.10.0.RemoteDesktopServicesRole.Service.DataSource Default

Source Code:

<Discovery ID="Microsoft.Windows.Server.10.0.RemoteDesktopServicesRole.Discovery" Enabled="true" Target="WindowsServer!Microsoft.Windows.Server.10.0.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.Server.10.0.RemoteDesktopServicesRole"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.10.0.RemoteDesktopServicesRole.Service.DataSource">
<NameSpace>\\$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$\ROOT\CIMV2</NameSpace>
<Query>SELECT Name FROM Win32_ServerFeature WHERE ID = 18</Query>
<Frequency>86400</Frequency>
<ClassId>$MPElement[Name="Microsoft.Windows.Server.10.0.RemoteDesktopServicesRole"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Data/Property[@Name='Name']$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>