Обновление 971244 (System Center 2019+ Virtual Machine Manager)

Microsoft.SystemCenter.VirtualMachineManager.VMMUpdate971244Monitor (UnitMonitor)

Отслеживает наличие обновления 971244 для VMM

Knowledge Base article:

Сводка

На сервере управления VMM не обнаружено обновление 971244.

Причины

На сервере управления VMM не обнаружено обновление 971244.

Решения

Установите на сервер управления VMM обновление 971244 ("Удаленное управление Windows (WinRM) не принимает запросы проверки подлинности HTTP, размер которых превышает 16 КБ на компьютере под управлением Windows Server 2008 или Windows Vista").

Внешние ресурсы

http://support.microsoft.com/kb/971244

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.Discovery.VMMManagementServer
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.TimedScript.TwoStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Обновление 971244 для VMM не установлено
Обновление 971244 для VMM не установлено на компьютере. Имя компьютера: {0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.VMMUpdate971244Monitor" Accessibility="Public" Target="VMMDiscovery!Microsoft.SystemCenter.VirtualMachineManager.Discovery.VMMManagementServer" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" TypeID="Windows!Microsoft.Windows.TimedScript.TwoStateMonitorType">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.VMMUpdate971244Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="VMMUpdate971244IsNotInstalled" MonitorTypeStateID="Error" HealthState="Error"/>
<OperationalState ID="VMMUpdate971244Installed" MonitorTypeStateID="Success" HealthState="Success"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>86400</IntervalSeconds>
<SyncTime/>
<ScriptName>CheckVMMUpdate971244MonitorScript.ps1</ScriptName>
<Arguments/>
<ScriptBody><Script># Copyright (c) Microsoft Corporation. All rights reserved.
# Powershell source code
# CheckVMMUpdate971244MonitorScript.ps1

# This Script is used to check if the VMM update 971244 is installed
# Through check the version of %Windir%\System32\wsmsvc.dll
# If the version is greater than "6.0.6002.22135",
# then it returns "Healthy", otherwise returns "Unhealthy"

$momAPI = new-object -comObject MOM.ScriptAPI
$error.Clear();
$oBag = $momAPI.CreatePropertyBag();
$expectedVersion = "6.0.6002.22135"

$dll = Get-Item $env:windir\System32\wsmsvc.dll
if($dll -ne $null){
$oBag.AddValue("Expected File Exists", "Yes");

# Check that version is 5.x.x.x (WS 2003) or less than 6.0.6002.22135
if(($dll.VersionInfo.ProductMajorPart -lt 6) -or (($dll.VersionInfo.ProductMajorPart -eq 6) -and ($dll.VersionInfo.ProductMinorPart -eq 0) -and (($dll.VersionInfo.ProductBuildPart -lt 6002) -or (($dll.ProductBuildPart -eq 6002) -and ($dll.VersionInfo.ProductPrivatePart -le 22135)))))
{
$oBag.AddValue("Update 971244 Installed", "Not Installed");
}
else
{
$oBag.AddValue("Update 971244 Installed", "Installed");
}

$oBag.AddValue("ActualVersion", $dll.VersionInfo.ProductVersion.ToString());
$oBag.AddValue("ExpectedVersion", $expectedVersion);
}
else {
$oBag.AddValue("Expected File Exists", "No");
$oBag.AddValue("Update 971244 Installed", "Not Installed");
}

$oBag;</Script></ScriptBody>
<TimeoutSeconds>300</TimeoutSeconds>
<ErrorExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Update 971244 Installed']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Not Installed</Value>
</ValueExpression>
</SimpleExpression>
</ErrorExpression>
<SuccessExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Update 971244 Installed']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Installed</Value>
</ValueExpression>
</SimpleExpression>
</SuccessExpression>
</Configuration>
</UnitMonitor>