Windows Backup Status Discovery

Windows.Backup.Discovery.Windows.Backup.Status (Discovery)

Element properties:

TargetWindows.Backup.Class.Windows.Backup.Status.Seed
EnabledTrue
Frequency14400
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.TimedScript.DiscoveryProvider Default

Source Code:

<Discovery ID="Windows.Backup.Discovery.Windows.Backup.Status" Enabled="true" Target="Windows.Backup.Class.Windows.Backup.Status.Seed" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Windows.Backup.Class.Windows.Backup.Status">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="Windows.Backup.Status.Seed.Hosts.Windows.Backup.Status"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.TimedScript.DiscoveryProvider">
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<ScriptName>DiscoveryScript.vbs</ScriptName>
<Arguments>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Arguments>
<ScriptBody><Script>
Option Explicit
SetLocale("en-us")

Dim oScriptAPI, oDiscoveryData

Set oScriptAPI = CreateObject("MOM.ScriptAPI")
Set oDiscoveryData = oScriptAPI.CreateDiscoveryData(0, "$MPElement$", "$Target/Id$")

Dim oTarget
oTarget = WScript.Arguments(0)

Dim oInst0
Set oInst0 = oDiscoveryData.CreateClassInstance("$MPElement[Name='Windows.Backup.Class.Windows.Backup.Status']$")

Call oInst0.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", oTarget)
Call oInst0.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "Windows Backup Status (" + oTarget + ")")

Call oDiscoveryData.AddInstance(oInst0)

Call oScriptAPI.Return(oDiscoveryData)
</Script></ScriptBody>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>