Windows 11 Clear Temp Files <TOP>

Register-ScheduledTask -TaskName $taskName -Action $action -Trigger $trigger -Settings $settings -Principal $principal -Force

Write-Host "Desktop shortcut created!" -ForegroundColor Green function Create-ScheduledTask $taskName = "WindowsTempCleaner" $scriptPath = $MyInvocation.MyCommand.Path windows 11 clear temp files

if (Test-Path $shortcutPath) Write-Host "Shortcut already exists on desktop." -ForegroundColor Yellow return windows 11 clear temp files

Back to top