]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - psmodules/drivespace.psm1
Install PoshGit for PowerShell from PowerShell Gallery
[dotfiles.git] / psmodules / drivespace.psm1
index 47072d89ea1cd45efc6bc1c4e321cddaa0549eb7..47527c35ea911ff1e71e3a2784575dc444d09d15 100644 (file)
@@ -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