Ad Widget

Collapse

VBS on zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fabiano
    Junior Member
    • Jun 2015
    • 4

    #1

    VBS on zabbix

    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"
  • Fabiano
    Junior Member
    • Jun 2015
    • 4

    #2
    As anybody monitor updates from the Windows operating system?

    Comment

    Working...