Hi i have a question....is it possible to use WMI to say for example enumerate the drives on a remote computer?

The function would be of the format
code:
 Function getInfo($driveName) 

I am using Kix 4.02 using a windows network that is a combination of 9x/nt/2000/xp pro

I do not have domain admin access but the person who I am writing it for will.

I have tried

code:
 $drives = GetObject("WinMgmts://$compName").ExecQuery("select Name, size from Win32_LogicalDisk") 

but this seems to only work if the $compName is set to the local computer even though on msdn here it says this should get the "default namespace on the computer myServer"

Thanks a lot for who ever can help

Dwayne
_________________________
Dwayne