>>>How about WMI?
>>
>>Good idea. Can you please give me a script file?
>>
>>Thanks.
>
>Instead of scripting
>Check this:
>
http://www.microsoft.com/downloads/details.aspx?FamilyID=2cc30a64-ea15-4661-8da4-55bbc145c30e&displaylang=en>:-)
Thanks, Borislav. Looks like I would be able to use the generator in the future.
>You should translate the generated script to everything you need.
>
>objWMIService = GetObject("winmgmts:\\.\root\CIMV2")
>colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Process",,48)
>For Each objItem in colItems
> ? "-----------------------------------"
> ? "Win32_Process instance"
> ? "-----------------------------------"
> ? "Name: " + objItem.Name
>Next
>
>(not tested)
If it's not broken, fix it until it is.
My Blog