PowerShell
Edit|Remove
Function Get-FreeSpace { 
<# 
.CREATED BY: 
    Matthew A. Kerfoot 
.CREATED ON: 
    10\21\2013 
.Synopsis 
   Gathers Disk Drive Available FreeSpace Percentage 
.DESCRIPTION 
    This function gathers information about HDDs and then reformats the output ` 
    to an easy to read output with the available FreeSpace percentage. 
.EXAMPLE 
   Get-FreeSpace localhost | ConvertTo-Html | Out-File C:\ 
#> 
 
                        [CmdletBinding()] 
                 Param ([Parameter(Mandatory=$false, 
                        ValueFromPipelineByPropertyName=$true, 
                        Position=0)] 
                        $Computername ) 
 
        Begin { $Begin = Get-WmiObject Win32_LogicalDisk } 
                         
 
    Process { $Process = $Begin | Where-Object { $_.DriveType -eq "3" } | Select-Object SystemName,  
            @{ Name = "Drive" ; Expression = { ( $_.DeviceID ) } }, 
            @{ Name = "Size (GB)" ; Expression = {"{0:N1}" -f( $_.Size / 1gb)}}, 
            @{ Name = "FreeSpace (GB)" ; Expression = {"{0:N1}" -f( $_.Freespace / 1gb ) } }, 
            @{ Name = "PercentFree" ; Expression = {"{0:P2}" -f( $_.FreeSpace / $_.Size ) } } } 
                     
End { $Process | Format-Table -AutoSize } 
}
 

This script will add some of my most used powershell functions to your PowerShell $PROFILE. meaning everytime you open PowerShell in the future you will see the verbose output of the added fuctions and their alias' a,b,c,d,e,f,g,hh,i,j. There is a double h because h is already an alias to 'Get-History'.
Please enjoy and Share with your friends!!