Détection des disques logiques Windows

Microsoft.Windows.Client.XP.LogicalDisk.Discovery (Discovery)

Cette règle utilise WMI pour détecter tous les disques logiques Windows, à l'exception des disques amovibles et des lecteurs réseau. Cette règle ne détecte pas les lecteurs montés sans lettre de lecteur. Une règle de détection séparée existe pour ces lecteurs.

Knowledge Base article:

Résumé

Cette règle de détection détecte et charge la classe client Windows appelée « Disque logique client Windows 2003 » avec des instances de disques logiques (par exemple, C:, D:) qui sont détectées sur les clients Windows 2003. Notez que seuls les disques locaux sont détectés. Les disques logiques qui sont classés sous Amovible, Disque compact, Lecteur réseau et Disques virtuels sont exclus.

Element properties:

TargetMicrosoft.Windows.Client.XP.OperatingSystem
EnabledTrue
Frequency3605
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:
Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DiscoveryDataSource DataSource Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper System.PrivilegedMonitoringAccount

Source Code:

<Discovery ID="Microsoft.Windows.Client.XP.LogicalDisk.Discovery" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.Client.XP.OperatingSystem">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.Client.XP.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="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="FileSystem"/>
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="Compressed"/>
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="Size"/>
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="DriveType"/>
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="SupportsDiskQuota"/>
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="QuotasDisabled"/>
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="SupportsFileBasedCompression"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="Windows!Microsoft.Windows.ComputerHostsLogicalDevice"/>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" RunAs="System!System.PrivilegedMonitoringAccount" TypeID="Windows!Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper">
<NameSpace>\\$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$\root\cimv2</NameSpace>
<Query>SELECT * FROM Win32_LogicalDisk WHERE (DriveType=3 or DriveType=6) and FileSystem!=null</Query>
<Frequency>3605</Frequency>
<ClassId>$MPElement[Name="Microsoft.Windows.Client.XP.LogicalDisk"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$</Name>
<Value>$Data/Property[@Name='DeviceID']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.LogicalDevice"]/Name$</Name>
<Value>$Data/Property[@Name='Name']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.LogicalDevice"]/Description$</Name>
<Value>$Data/Property[@Name='Description']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="WindowsClient!Microsoft.Windows.Client.LogicalDisk"]/FileSystem$</Name>
<Value>$Data/Property[@Name='FileSystem']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="WindowsClient!Microsoft.Windows.Client.LogicalDisk"]/Compressed$</Name>
<Value>$Data/Property[@Name='Compressed']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="WindowsClient!Microsoft.Windows.Client.LogicalDisk"]/Size$</Name>
<Value>$Data/Property[@Name='Size']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="WindowsClient!Microsoft.Windows.Client.LogicalDisk"]/DriveType$</Name>
<Value>$Data/Property[@Name='DriveType']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="WindowsClient!Microsoft.Windows.Client.LogicalDisk"]/SupportsDiskQuota$</Name>
<Value>$Data/Property[@Name='SupportsDiskQuotas']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="WindowsClient!Microsoft.Windows.Client.LogicalDisk"]/QuotasDisabled$</Name>
<Value>$Data/Property[@Name='QuotasDisabled']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="WindowsClient!Microsoft.Windows.Client.LogicalDisk"]/SupportsFileBasedCompression$</Name>
<Value>$Data/Property[@Name='SupportsFileBasedCompression']$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>