X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/7f8534a0ad54e854ab4d70b0bd45e2c05369aece..88233b4719d92d6153c31a407225aeb7199f5ebf:/psmodules/drivespace.psm1 diff --git a/psmodules/drivespace.psm1 b/psmodules/drivespace.psm1 index 47072d8..47527c3 100644 --- a/psmodules/drivespace.psm1 +++ b/psmodules/drivespace.psm1 @@ -15,7 +15,10 @@ Display the free space on the C drive. #> function Show-Drivespace() { - Get-PSDrive C | Select-Object Used,Free + Get-PSDrive C | Select-Object Used,Free | ForEach { + Write-Host "Free space GB: " ($_.Free / 1GB) + Write-Host "Used space GB: " ($_.Used / 1GB) + } } Export-ModuleMember -Function Show-Drivespace