Source Code and Samples

Friday 9 February 2007

Getting Available Disk Space (PowerShell and WMI)

Description

Getting Available Disk Space. You need to see only instances with a DriveType of 3—the value WMI uses for fixed hard disks.

Source Code

Get-WmiObject -Class Win32_LogicalDisk -Filter "DriveType=3" -ComputerName .

No comments: