fix old downloaded apps cleaner

This commit is contained in:
2025-08-15 15:57:59 -04:00
parent 432133775a
commit 3f89290295
+1 -1
View File
@@ -232,7 +232,7 @@ ForEach ( $userProfile in $(Get-UserProfiles) ) {
ForEach ( $oldDownloadedApp in $OldDownloadedApps ) {
$path = $oldDownloadedApp.FullName
Write-Output " - Deleting: ""${path}"""
Try { Remove-Item -Path $path.FullName -Force -ErrorAction SilentlyContinue }
Try { Remove-Item -Path $path -Force -ErrorAction SilentlyContinue }
Catch { Write-Error $_.Exception.Message }
}
}