]> apps.delaporte.us Git - dotfiles.git/blob - psmodules/drivespace.psm1
Lazy load PoshGit for faster startup.
[dotfiles.git] / psmodules / drivespace.psm1
1 <#
2 .SYNOPSIS
3
4 Find 10 largest files on the C drive.
5
6 #>
7 function Show-LargeFiles() {
8 Get-ChildItem c:\ -r| sort -descending -property length | select -first 10 name, Length, FullName
9 }
10
11 <#
12 .SYNPOSIS
13
14 Display the free space on the C drive.
15
16 #>
17 function Show-Drivespace() {
18 Get-PSDrive C | Select-Object Used,Free
19 }
20
21 Export-ModuleMember -Function Show-Drivespace
22 Export-ModuleMember -Function Show-LargeFiles