Discovery Windows Server Webservice Computer ManagedByTask

Windows.Server.Webservice.LogdirectoryWatcher.Discovery.Windows.Server.Webservice.Computer.ManagedByTask (Discovery)

Description for the new discovery.

Element properties:

TargetMicrosoft.Windows.Server.Computer
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="Windows.Server.Webservice.LogdirectoryWatcher.Discovery.Windows.Server.Webservice.Computer.ManagedByTask" Target="Windows!Microsoft.Windows.Server.Computer" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Windows.Server.Webservice.LogdirectoryWatcher.Computer.ManagedByTask"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>KeyExists</AttributeName>
<Path>Software\ABCIT\LogDirectoryWatcher</Path>
<PathType>0</PathType>
<AttributeType>0</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>TaskName</AttributeName>
<Path>Software\ABCIT\LogDirectoryWatcher\TaskName</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>TaskType</AttributeName>
<Path>Software\ABCIT\LogDirectoryWatcher\TaskType</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>ScriptPath</AttributeName>
<Path>Software\ABCIT\LogDirectoryWatcher\ScriptPath</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>WindowsVersion</AttributeName>
<Path>SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>ComputerDescription</AttributeName>
<Path>SYSTEM\CurrentControlSet\services\LanmanServer\Parameters\srvcomment</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>43200</Frequency>
<ClassId>$MPElement[Name="Windows.Server.Webservice.LogdirectoryWatcher.Computer.ManagedByTask"]$</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>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows.Server.Webservice.LogdirectoryWatcher.Computer"]/ComputerName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows.Server.Webservice.LogdirectoryWatcher.Computer"]/WindowsVersion$</Name>
<Value>$Data/Values/WindowsVersion$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows.Server.Webservice.LogdirectoryWatcher.Computer"]/Description$</Name>
<Value>$Data/Values/ComputerDescription$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows.Server.Webservice.LogdirectoryWatcher.Computer.ManagedByTask"]/TaskType$</Name>
<Value>$Data/Values/TaskType$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows.Server.Webservice.LogdirectoryWatcher.Computer.ManagedByTask"]/TaskName$</Name>
<Value>$Data/Values/TaskName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows.Server.Webservice.LogdirectoryWatcher.Computer.ManagedByTask"]/ScriptPath$</Name>
<Value>$Data/Values/ScriptPath$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>Values/KeyExists</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>true</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</Discovery>