Skip to content

Instantly share code, notes, and snippets.

@endurtech
Last active January 27, 2026 17:36
Show Gist options
  • Select an option

  • Save endurtech/c181607e3f02e2e008c673bbbc0f8e25 to your computer and use it in GitHub Desktop.

Select an option

Save endurtech/c181607e3f02e2e008c673bbbc0f8e25 to your computer and use it in GitHub Desktop.
Automagically Clear the Windows Temporary Folders so that PaperPort doesn't hang. https://endurtech.com/fix-paperport-14-thumbnails-not-loading/
# PowerShell Script to Silently Clean Windows Temporary Folders
# https://endurtech.com/fix-paperport-14-thumbnails-not-loading/
# PaperPort relies heavily on the Windows temporary folder for caching thumbnails, processing scans, and managing large PDF operations.
# PaperPort generates many temporary files and if the Windows Temp folder reaches its file limit PaperPort will hang.
# To restore operation, clear the Temp folders using this script. Schedule this to run once per month with Task Scheduler.
# Clear Temp Files for User
Remove-Item -Path "$env:TEMP\*" -Recurse -Force -ErrorAction SilentlyContinue
# Clear Temp Files for System
Remove-Item -Path "C:\Windows\Temp\*" -Recurse -Force -ErrorAction SilentlyContinue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment