' Pandora FMS Agent Inventory Plugin for Microsoft Windows (All platfforms) ' (c) 2015 Borja Sanchez ' This plugin extends agent inventory feature. Only enterprise version ' -------------------------------------------------------------------------- 'WMI video_card_info strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colVideoCards = objWMIService.ExecQuery("Select caption,AdapterRAM,PNPDeviceID from win32_videocontroller") on error resume next flag = colVideoCards.Count If (err.number <> 0) Then flag = true Else flag = false End If on error goto 0 'Print only when there's results If (NOT flag) Then Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine "Video" Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine "" For Each vcard In colVideoCards Wscript.StdOut.Write "" Next Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine "" End If