This object discovers the relationship between file servers and computers that are using the File Classification Infrastructure.
Knowledge Base article:
Summary
This object discovers the containment relationship between the File Services role and the File Classification Infrastructure in Windows Server 2008 R2 by using the DiscoverFCIRel.vbs script.
set oDiscoveryData = oAPI.CreateDiscoveryData(0, SourceId, ManagedEntityId)
Dim oWmiInst, oServerFeature
Set oWmiInst = GetObject("winmgmts:\\" & TargetComputer & "\ROOT\CIMV2")
Set oServerFeature = oWmiInst.ExecQuery("SELECT * FROM Win32_ServerFeature WHERE ID='104'")
if oServerFeature.Count > 0 Then
set oInst = oDiscoveryData.CreateClassInstance("$MPElement[Name='Microsoft.Windows.FileServer.Service.FCI.2008R2']$")
''
'' Since we are using "contains" - we have to now discover the class instance above us. If it is
'' already discovered, Ops Manager will recognize this as a reference count increase and not a
'' separate discovery because the key property is the same.
''
''
'' Now we have to also create an instance of the relationship to link this Service instance to its parent (FileServer)
''
Set oRel = oDiscoveryData.CreateRelationshipInstance("$MPElement[Name='FileServices!Microsoft.Windows.FileServer.Contains.Service']$")
oRel.Source = oInstFs
oRel.Target = oInst
Call oDiscoveryData.AddInstance(oRel)
End If