There i have another question that fits to the current topic:
I use the following fragment for getting the Drive names, sizes and free space of the computers in the network
WMIQuery("Name","Win32_LogicalDisk",$computer,"DriveType",3)
When i do it like this:
Code:
$colItems = $WMI.ExecQuery("Select * from Win32_LogicalDisk WHERE DriveType = 3",,48)
For Each $objItem in $colItems
?"Logical Disk Size: " + ROUND($ToGB * $objItem.Size,2)
?"FreeSpace: " + ROUND($ToGB * $objItem.FreeSpace,2)
?"Name: " + $objItem.Name
?"------"
Next
Now, the later Code Accesses just the Drives with the DriveType 3, but the upper code seems to access ALL drives, stores the info and outputs those with Type3, which makes the WMIQuery Access my Floppy Drive and make the Access-Noise that i don't want to have at every Audit. I would like to use the later script part, but i don't know how to access other computers (with different passwords) and i'm not quite able to extract that information out of the WMIQuery() UDF
Any solution there?
Edit:
$ToGB = Factor for converting Byte to GB
Edited by private_meta (2006-08-31 03:45 PM)
_________________________
-=If you absolutly believe you can make up talent with hard work, there is no limit to what you can't achieve.=-