diff --git a/Cleanup-SystemTempFiles.ps1 b/Cleanup-SystemTempFiles.ps1 index 2d72c91..dd7725f 100644 --- a/Cleanup-SystemTempFiles.ps1 +++ b/Cleanup-SystemTempFiles.ps1 @@ -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 } } }