fix old downloaded apps cleaner
This commit is contained in:
@@ -232,7 +232,7 @@ ForEach ( $userProfile in $(Get-UserProfiles) ) {
|
|||||||
ForEach ( $oldDownloadedApp in $OldDownloadedApps ) {
|
ForEach ( $oldDownloadedApp in $OldDownloadedApps ) {
|
||||||
$path = $oldDownloadedApp.FullName
|
$path = $oldDownloadedApp.FullName
|
||||||
Write-Output " - Deleting: ""${path}"""
|
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 }
|
Catch { Write-Error $_.Exception.Message }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user