Check Windows Updates

This script uses the Windows Updates API to check which updates should be installed and also checks if you need to reboot your system.

Parameters

  • -w - numbers of updates before warning level default 0
  • -c - numbers of updates before critical level default 0

Result:

  • Warning - When you need to reboot your system.
  • Critical - When there is more than \"c\" updates awaiting for installation.
  • Warning - When there is more than \"w\" updates awaiting for installation.
  • OK - When there is less than \"c\" or \"w\" updates awaiting for installation.

NRPE

command[windows_updates]=c:\windows\system32\cscript.exe /NoLogo /T:120 c:\nrpe_nt\plugins\check_windows_updates.wsf /w:0 /c:1