Try this if you are still having problems - you can alter the location of the logfile in the script but it should at least generate a file with some info in it.

code:
Break on
? "What PC would you like to query for disk info? (Press return for local machine) "
Gets $target
If not $target
$target = @WKSTA
Endif
$WMI = GetObject("winmgmts:{impersonationlevel=impersonate}!//" + $target)
If $WMI
$Disks = $WMI.ExecQuery("select * from win32_logicaldisk")
;$x = Open(1,"\\server\share\disklog.txt",5)
$x = Open(1,"c:\disklog.txt",5)
If @ERROR <> 0
? "Error opening logfile!"
Goto end
Endif
for each $disk in $disks
$name = $disk.name
$size = $disk.size
$filesystem = $disk.filesystem
$freespace = $disk.freespace
$x = Writeline(1,$name + " " + $filesystem + " " + $size + " " + $freespace + chr(13) + chr(10))
next
$x = Close(1)
Else
? "WMI not connected - error!"
Endif

:end
Exit

Hope this helps.
_________________________
================================================
Breaker