Same script but with a visually better output:

gc "computers.txt" | % { "Server: " + $_; "Drive`tSize`tFree"; gwmi
–computername $_ win32_logicaldisk -filter "drivetype=3" | % {
$_.deviceid +"`t"+ [System.Math]::Round($_.size/1GB,2) +"`t"+
[System.Math]::Round($_.freespace/1GB,2) } }

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

Reply via email to