[hobbit] BBWin 0.11 Centralised Config problems

Etienne Grignon etienne.grignon at gmail.com
Sun May 18 09:32:25 CEST 2008


Hello,

2008/4/4 ndegz <nndegz at gmail.com>:
> 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



More information about the Xymon mailing list