发现 Windows 逻辑磁盘
Microsoft.Windows.Server.6.2.LogicalDisk.Discovery (Discovery)
此规则使用 WMI 来发现所有 Windows 逻辑磁盘,不包括可移动驱动器和网络驱动器。 此规则不发现装入时没有驱动器号的驱动器。 对于此类驱动器,有单独的发现规则。
Knowledge Base article: Element properties: Object Discovery Details: Member Modules:
Source Code: <Discovery ID="Microsoft.Windows.Server.6.2.LogicalDisk.Discovery" Enabled="true" Target="WindowsServer!Microsoft.Windows.Server.6.2.OperatingSystem">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="WindowsServer!Microsoft.Windows.Server.6.2.LogicalDisk">
<Property TypeID="Windows!Microsoft.Windows.LogicalDevice" PropertyID="DeviceID"/>
<Property TypeID="Windows!Microsoft.Windows.LogicalDevice" PropertyID="Name"/>
<Property TypeID="Windows!Microsoft.Windows.LogicalDevice" PropertyID="Description"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.LogicalDisk" PropertyID="FileSystem"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.LogicalDisk" PropertyID="Compressed"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.LogicalDisk" PropertyID="Size"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.LogicalDisk" PropertyID="SizeNumeric"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.LogicalDisk" PropertyID="SizeInMBs"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.LogicalDisk" PropertyID="DriveType"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.LogicalDisk" PropertyID="SupportsDiskQuota"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.LogicalDisk" PropertyID="QuotasDisabled"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.LogicalDisk" PropertyID="SupportsFileBasedCompression"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="Windows!Microsoft.Windows.ComputerHostsLogicalDevice"/>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" TypeID="Microsoft.Windows.Server.6.2.LogicalDiskDiscovery.ModuleType">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ComputerID>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerID>
<IntervalSeconds>86460</IntervalSeconds>
<TimeoutSeconds>360</TimeoutSeconds>
</DataSource>
</Discovery>