]> apps.delaporte.us Git - dotfiles.git/blobdiff - psmodules/drivespace.psm1
Made a GIF file.
[dotfiles.git] / psmodules / drivespace.psm1
index 47072d89ea1cd45efc6bc1c4e321cddaa0549eb7..59feb96d962c377038de904e7a1c58eb8f3fb4f3 100644 (file)
@@ -15,8 +15,12 @@ Display the free space on the C drive.
 
 #>
 function Show-Drivespace() {
 
 #>
 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 
 Export-ModuleMember -Function Show-LargeFiles
 Export-ModuleMember -Function Show-Drivespace 
 Export-ModuleMember -Function Show-LargeFiles