Skip to content

Commit a65867f

Browse files
committed
Update Repair-AllVolumes.ps1
Do away with verbose; write pre-scan and post-scan status
1 parent 4d8bb6e commit a65867f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Maintenance/Repair-AllVolumes.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ function Get-FixedVolume {
33
}
44

55
$Volumes = Get-FixedVolume
6+
7+
Write-Output "Pre-scan status:"
8+
Write-Output $Volumes
9+
10+
Write-Output "Scanning..."
611
foreach ($Volume in $Volumes) {
712
Format-List -InputObject $Volume -Property DriveLetter,Path,UniqueID,FileSystemLabel,FileSystemType,Size,SizeRemaining
8-
$Volume | Repair-Volume -Scan -Verbose
13+
$Volume | Repair-Volume -Scan # -Verbose
914
}
10-
Get-FixedVolume
15+
16+
Write-Output "`nPost-scan status:"
17+
Write-Output $(Get-FixedVolume)

0 commit comments

Comments
 (0)