[英]Check if Recycle Bin is corrupted with PowerShell
也许这样的事情对你有用:
$bin = 'C:\$Recycle.Bin'
try {
$items = Get-ChildItem -Path $bin -Force -ErrorAction Stop
Write-Host "$bin seems just fine. Contains $($items.Count) items." -ForegroundColor Green
}
catch {
Write-Host "$bin looks corrupted.." -ForegroundColor Red
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.