Check_ms_win_updates fails on Windows 10 only


My command define command{ command_name check_ms_win_updates2 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c check_ms_win_updates -a ‘-wd 45 -cd 90 -M PSWindowsUpdate’ }

My service define service{ use generic-service host_name TGKW001 service_description WSUS check_command check_ms_win_updates2 servicegroups Windows Updates } Part of my nsclient

; Section for external scripts configuration options (CheckExternalScripts). [/settings/external scripts]

; COMMAND TIMEOUT - The maximum time in seconds that a command can execute. (if more then this execution will be aborted). NOTICE this only affects external commands not internal ones. timeout = 60

; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><’"[]{}) characters in arguments. allow nasty characters = 0

; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed. ; allow arguments = 0 allow arguments = 1 ; A list of scripts available to run from the CheckExternalScripts module. Syntax is: = [/settings/external scripts/scripts]

check_ms_win_updates = cmd /c echo scripts/powershell/check_ms_win_updates.ps1 $ARG1$; exit $LastExitCode | powershell.exe -command -

Now I ran it from Powershell v5 on my Windows 10 Pro computer

PS C:\program files\nsclient++\scripts\powershell> .\check_ms_win_updates.ps1 -M PSWindowsUpdate CRITICAL: Last successful update at 2016/01/13 18:26:22 exceeded critical threshold of 150 days. Pending updates {Total:

It takes a very long time to run 15 20 minutes.

It does not think it is up to date either this Windows 10 machine is current with updates.

I have it working on Windows 7 machines Windows 2012 Trying Windows 2008 soon

Any ideas

Thank you



all other OS systems work Windows 7 Windows 8 Window 2008 Windows 2012

In my NSCLIENT.INI 017-02-27 21:59:35: error:c:\source\nscp\include\socket/connection.hpp:149: Failed to send data: The file handle supplied is not valid