diff --git a/dbm-services/common/db-resource/internal/svr/bk/get_win_disk.ps1 b/dbm-services/common/db-resource/internal/svr/bk/get_win_disk.ps1 index 6fbdcea69f..d4cafdbafc 100644 --- a/dbm-services/common/db-resource/internal/svr/bk/get_win_disk.ps1 +++ b/dbm-services/common/db-resource/internal/svr/bk/get_win_disk.ps1 @@ -1,4 +1,4 @@ -$diskInfo = Get-WmiObject -Class Win32_LogicalDisk -Filter "DriveType=3" | ForEach-Object { +$diskInfo = Get-WmiObject -Class Win32_LogicalDisk -Filter "DriveType=3" | Where-Object { $_.FreeSpace -lt $_.Size } | ForEach-Object { [PSCustomObject]@{ DriveLetter = $_.DeviceID TotalSize = $_.Size