RD Gateway Discovery

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

This object discovers all computers that are running the Remote Desktop Gateway role service.

Knowledge Base article:

Summary

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

Element properties:

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

Object Discovery Details:

Discovered Classes and their attribuets:
Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper Default

Source Code:

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