# Speed up a computer

clean temp via powershell

<table border="1" id="bkmrk-%24profiles-%3D-get-chil" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 99.881%;"></col></colgroup><tbody><tr><td>$profiles = Get-ChildItem 'C:\\Users' | Where-Object {  
 $\_.PSIsContainer -and  
 $\_.Name -notin @('All Users', 'Default', 'Default User', 'Public', 'desktop.ini')  
}

foreach ($profile in $profiles) {  
 $tempPath = Join-Path -Path $profile.FullName -ChildPath 'AppData\\Local\\Temp'  
 if (Test-Path $tempPath) {  
 try {  
 Write-Host "Cleaning: $tempPath"  
 Get-ChildItem -Path $tempPath -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue  
 } catch {  
 Write-Warning "Failed to clean: $tempPath - $\_"  
 }  
 }  
}

</td></tr></tbody></table>

run perfmon /rel

run perfmon /report

run cleanmgr for disk cleanup

sysdm.cpl &gt; advanced &gt; setings &gt; advanced &gt; change virtual memory

[![image.png](https://note.human-bean.net/uploads/images/gallery/2026-08/scaled-1680-/image.png)](https://note.human-bean.net/uploads/images/gallery/2026-08/image.png)