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:

Resumen

Esta regla se ejecuta en todos los equipos Windows Server 2016 y 1709+ y comprueba si IIS 10 está instalado.

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.ServerRole
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

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

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>