DFS 클라이언트 컴퓨터 검색

Microsoft.Windows.FileServer.DFSN.DfsClientDiscovery (Discovery)

이 개체는 검색된 각 컴퓨터에 대해 DFS 클라이언트 컴퓨터 클래스 인스턴스를 만들며, 클라이언트 컴퓨터가 DFS 네임스페이스의 가용성을 모니터링할 수 있도록 하는 데 사용됩니다.

Knowledge Base article:

요약

이 개체는 검색된 각 컴퓨터에 대해 DFS 클라이언트 컴퓨터 클래스 인스턴스를 만들며, 클라이언트 컴퓨터가 DFS 네임스페이스의 가용성을 모니터링할 수 있도록 하는 데 사용됩니다.

이 개체는 기본적으로 사용하지 않도록 설정되어 있습니다. 사용하도록 설정된 경우 이 개체는 DFSNClientDiscovery.vbs 스크립트를 실행합니다.

이 개체를 통해 컴퓨터가 DFS 네임스페이스, 폴더(링크) 및 폴더 대상에 액세스할 수 있는지 테스트합니다. 네임스페이스 테스트 중 많은 네트워크 트래픽이 생성될 수 있으므로 다수의 컴퓨터에서 이 개체를 사용하도록 설정하지 마십시오. 대신, 재정의를 사용하여 특정 컴퓨터에서만 이 개체를 사용하도록 설정합니다.

Element properties:

TargetMicrosoft.Windows.Computer
EnabledFalse
Frequency43200
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.TimedScript.DiscoveryProvider Default

Source Code:

<Discovery ID="Microsoft.Windows.FileServer.DFSN.DfsClientDiscovery" Enabled="false" Target="Windows!Microsoft.Windows.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.FileServer.DFSN.Client"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.TimedScript.DiscoveryProvider">
<IntervalSeconds>43200</IntervalSeconds>
<SyncTime/>
<ScriptName>DFSNClientDiscovery.vbs</ScriptName>
<Arguments>0 $MPElement$ $Target/Id$ $Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Arguments>
<ScriptBody><Script>
Option Explicit
SetLocale("en-us")
Dim SourceType, SourceID, ManagedEntityId, oArgs, oAPI, sDfsClientName
Set oAPI = CreateObject("MOM.ScriptAPI")
If Err.Number &lt;&gt; 0 Then
Wscript.Quit -1
End if
Set oArgs = WScript.Arguments
if oArgs.Count &lt; 4 Then
'call oAPI.LogScriptEvent("DFSNClientDiscovery.vbs", 100, 1, "Expected 4 arguments. There were only " &amp; oArgs.Count &amp; " arguments. Exiting script.")
Wscript.Quit -1
End If

Dim oDiscData
Dim oDfsClient

SourceType = oArgs(0)
SourceId = oArgs(1)
ManagedEntityId = oArgs(2)
sDfsClientName = oArgs(3)

set oDiscData = oAPI.CreateDiscoveryData(SourceType, SourceId, ManagedEntityId)
If Err.Number &lt;&gt; 0 Then
Wscript.Quit -1
End if

set oDfsClient = oDiscData.CreateClassInstance("$MPElement[Name='Microsoft.Windows.FileServer.DFSN.Client']$")
call oDfsClient.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", sDfsClientName)
call oDfsClient.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "DFS Client")
Call oDiscData.AddInstance(oDfsClient)

Call oAPI.Return(oDiscData)
</Script></ScriptBody>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>