Microsoft Windows Update

Configuring Windows Remote Management (WinRM)

  • If not already done so, install PowerShell 2.0 and WinRM on the APM and target servers. Powershell 2.0 can be found here: http://support.microsoft.com/kb/968930.
  • On the Orion APM server, open a command prompt as an Administrator. To do this, perform the following step:

Go to the Start menu and right-click the cmd.exe and then select Run as Administrator.

  • Enter the following in the command prompt:

winrm quickconfig
winrm set winrm/config/client @{TrustedHosts="*"}

  • On the target server, open a command prompt as an Administrator and enter the following:

winrm quickconfig
winrm set winrm/config/client @{TrustedHosts="IP_ADDRESS"}

where IP address is the IP address of your APM server.


Windows Updates Monitoring

This template allows you to check status of Windows Updates. It monitors how many new (hidden, critical and optional) updates are available, how many updates installed, check is reboot required before/after installing updates and how many passed from last Windows Updates installation.

Prerequisites: WinRM must be installed and properly configured on the target server.

Credentials: Administrator on target server.

Monitored Components

Available hidden updates

This component monitor shows amount of available hidden updates.

Available critical updates

This component monitor shows amount of available critical updates. Should always be zero.

Available optional updates

This component monitor shows amount of available optional updates.

Installed updates

This component monitor shows amount of installed updates.

Days passed from last Windows Update

This component monitor returns how many days have passed from last Windows Updates installation. Also this component returns the name of last installed update.

Machine restart status after installing Windows Updates

This component monitor shows restart status after installing Windows Updates.

Possible values:
0 - No reboot requires.
1 - Updates installed. Reboot required.

Service: Windows Updates

This component monitors Windows Updates service which enables the detection, download, and installation of updates for Windows and other programs. If this service is disabled, users of this computer will not be able to use Windows Update or its automatic updating feature, and programs will not be able to use the Windows Update Agent (WUA) API.

Portions of this document were originally created by and are excerpted from the following sources:
Microsoft Corporation, “MSDN Library,” Copyright Copyright 2012 Microsoft Corporation.  All rights reserved. Available at http://technet.microsoft.com

Parents
  • Got it emoticons_happy.png It was a format problem in this line "if ($res -eq "00:00:00")"

    I've changed the format of the dates and this line and now it works emoticons_happy.png On this site the code looks like:

    $date1 = get-date -uformat "%Y.%m.%d"

    $t = $d.tostring("yyyy.MM.dd").split(" ")

    $date2 = $t[0]

    $stat = Get-DateDiff $date1 $date2

    $res = $stat.tostring().split(".")

    if ($res -eq "00.00.00")

    Thanks a lot for every tip!

    Christian

Comment
  • Got it emoticons_happy.png It was a format problem in this line "if ($res -eq "00:00:00")"

    I've changed the format of the dates and this line and now it works emoticons_happy.png On this site the code looks like:

    $date1 = get-date -uformat "%Y.%m.%d"

    $t = $d.tostring("yyyy.MM.dd").split(" ")

    $date2 = $t[0]

    $stat = Get-DateDiff $date1 $date2

    $res = $stat.tostring().split(".")

    if ($res -eq "00.00.00")

    Thanks a lot for every tip!

    Christian

Children
No Data