Detección de la versión de rol de servidor de IIS 10
Microsoft.Windows.InternetInformationServices.10.0.ServerRoleVersion.Discovery.Rule (Discovery)
Esta regla se ejecuta en todos los servidores web IIS 10 para detectar la información de la versión exacta. Detecta los valores de la propiedad de la versión principal y versión secundaria.
Knowledge Base article: Element properties: Object Discovery Details: Member Modules:
Source Code: <Discovery ID="Microsoft.Windows.InternetInformationServices.10.0.ServerRoleVersion.Discovery.Rule" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.ServerRole" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.InternetInformationServices.10.0.ServerRole">
<Property TypeID="IISCommon!Microsoft.Windows.InternetInformationServices.ServerRole" PropertyID="MinorVersion"/>
<Property TypeID="IISCommon!Microsoft.Windows.InternetInformationServices.ServerRole" PropertyID="MajorVersion"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" RunAs="System!System.PrivilegedMonitoringAccount" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>IIS_INSTALLED</AttributeName>
<Path>SOFTWARE\MICROSOFT\InetStp\InstallPath</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>IIS_MAJOR_VERSION</AttributeName>
<Path>SOFTWARE\MICROSOFT\InetStp\MajorVersion</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>IIS_MINOR_VERSION</AttributeName>
<Path>SOFTWARE\MICROSOFT\InetStp\MinorVersion</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>14400</Frequency>
<ClassId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.10.0.ServerRole"]$</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="IISCommon!Microsoft.Windows.InternetInformationServices.ServerRole"]/MajorVersion$</Name>
<Value>$Data/Values/IIS_MAJOR_VERSION$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="IISCommon!Microsoft.Windows.InternetInformationServices.ServerRole"]/MinorVersion$</Name>
<Value>$Data/Values/IIS_MINOR_VERSION$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>Values/IIS_INSTALLED</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>.+</Pattern>
</RegExExpression>
</Expression>
</DataSource>
</Discovery>