Hello,
I am having some trouble getting data into Splunk from a powershell script.
The script is a Nagios script called "Check Windows Updates using Powershell", and returning the current status of the Windows Update software using the standard output "Write-Host".
My problem is that the script does not seem to run when intended.
I added my check_windows_updates.ps1 script via the "Add data" wizard, but it does not seem to run.
I also added an other .bat script containing the following :
@echo off
powershell check_windows_updates.ps1
But it does not seem to run either, as I do not get any data from those two scipts inputs.
Thanks in advance for your help!
EDIT: I have .Net 4.7 and Powershell 3.0 installed on my windows server
... View more