DirectAccess Server discovery

DirectAccess_Server_Discovery (Discovery)

DirectAccess is an optional feature of Windows Server 2008 R2 that will host, manage, and either terminate or pass-through IPsec sessions.
For DirectAccess server to be discovered the following registry key needs to be created on the machine and set to a value of 1: HKLM\Software\Microsoft\DAServer\Management. The DirectAccess server will be discovered only if the machine is discovered to be a Windows 2008 R2.

Knowledge Base article:

Summary

DirectAccess is an optional feature of Windows Server 2008 R2 that will host, manage, and either terminate or pass-through IPsec sessions.

Configuration

For DirectAccess server to be discovered, the following registry key needs to be created on the machine and set to a value of 1: HKLM\Software\Microsoft\DAServer\Management. The DirectAccess server will be discovered only if the machine is discovered to be a Windows 2008 R2 server.

Element properties:

TargetMicrosoft.Windows.Server.2008.R2.OperatingSystem
EnabledTrue
Frequency43200
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

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

Source Code:

<Discovery ID="DirectAccess_Server_Discovery" Enabled="true" Target="Server2K8!Microsoft.Windows.Server.2008.R2.OperatingSystem" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="DirectAccess_Server_Class"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>Management</AttributeName>
<Path>Software\Microsoft\DAServer\Management</Path>
<PathType>1</PathType>
<AttributeType>2</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>43200</Frequency>
<ClassId>$MPElement[Name="DirectAccess_Server_Class"]$</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>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/Management</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</Discovery>