i have one script vbs for get the Windows updates number, When i running manually is ok, however When executed hair zabbix IT Returns empty .
script:
Set updateSession = CreateObject("Microsoft.Update.Session")
Set updateSearcher = updateSession.CreateupdateSearcher()
Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'")
WScript.Echo searchResult.Updates.Count
changes in conf:
EnableRemoteCommands=1
UserParameters=1
UserParameter = wu.all,%systemroot%\system32\cscript.exe /nologo /T:30 "C:\Agent\scripts\zabbix_wus_update_all.vbs"
script:
Set updateSession = CreateObject("Microsoft.Update.Session")
Set updateSearcher = updateSession.CreateupdateSearcher()
Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'")
WScript.Echo searchResult.Updates.Count
changes in conf:
EnableRemoteCommands=1
UserParameters=1
UserParameter = wu.all,%systemroot%\system32\cscript.exe /nologo /T:30 "C:\Agent\scripts\zabbix_wus_update_all.vbs"
Comment