10 lines
490 B
PowerShell
10 lines
490 B
PowerShell
$rc='C:\ProgramData\acg-backup\rclone\rclone.exe'
|
|
foreach ($d in 'C:\Windows','C:\Program Files','C:\Program Files (x86)','C:\ProgramData','C:\Users') {
|
|
$out = & $rc size $d --skip-links 2>$null | Select-String 'Total size'
|
|
"$d :: $out"
|
|
}
|
|
'--- C:\ root files (pagefile etc) ---'
|
|
Get-ChildItem 'C:\' -File -Force -ErrorAction SilentlyContinue | Select-Object Name,@{n='GB';e={[math]::Round($_.Length/1GB,1)}} | Format-Table -AutoSize | Out-String
|
|
'--- D:\vault ---'
|
|
Test-Path 'D:\vault'
|