Xymon Mailing List Archive search

BBWin 0.11 Centralised Config problems

list Etienne Grignon
Sun, 18 May 2008 09:32:25 +0200
Message-Id: <user-d140fed39a13@xymon.invalid>

Hello,

2008/4/4 ndegz <user-8b9b995f074d@xymon.invalid>:
Hi Etienne,
Thanks for the info. I'm now trying to implement a vbs script solution (
perl is out of the question at the moment) and i'm getting errors. How do
you run a vbs script from client-local?
I've tried the following
file:`C:\listing.vbs`
[WARN]: [files]: C:\listing.vbs command failed : The handle is invalid.
I tried this also
file:`cscript C:\listing.vbs`
and i get this error
[WARN]: [files]: Unknow hash type for file configuration : \listing.vbs`

listing.vbs is a script i borrowed from microsoft's scripting repository

strComputer = "."

Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colFileList = objWMIService.ExecQuery _
    ("ASSOCIATORS OF {Win32_Directory.Name='C:\CFusionMX\Mail\Spool'} Where
" _
        & "ResultClass = CIM_DataFile")

        For Each objFile In colFileList
        Wscript.Echo objFile.Name
    Next
Try using this :

file:`cscript C:\listing.vbs`


-- 
Etienne GRIGNON