X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/7f8534a0ad54e854ab4d70b0bd45e2c05369aece..50f9b02644cc951730a78c06b8dc03e8b32ce4b4:/psmodules/drivespace.psm1?ds=inline diff --git a/psmodules/drivespace.psm1 b/psmodules/drivespace.psm1 index 47072d8..59feb96 100644 --- a/psmodules/drivespace.psm1 +++ b/psmodules/drivespace.psm1 @@ -15,8 +15,12 @@ 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 Export-ModuleMember -Function Show-LargeFiles