Speed Up, Debloat and Free Memory on Windows
by RickyD33 in Circuits > Microsoft
3609 Views, 0 Favorites, 0 Comments
Speed Up, Debloat and Free Memory on Windows
Here i have compiled a list of files or folders safe to remove and put them into short commands.
Subscribe to my channel for more guides - https://www.youtube.com/channel/UCzi6WhYh-VaUbX6BN5BKZcg
open your start menu and type cmd, press enter and windows command prompt will appear. here i list what files we are removing and the commands to do so.
Free Up Space
Remove thumbs.db from everywhere-
dir /s /b "%SYSTEMDRIVE%\" | find /I "thumbs.db"> thumbs.txt & for /F "usebackq tokens=*" %%A in (thumbs.txt) do if exist %%A del /Q "%%A"
--------------------------------------------------
Clear browser cache(chrome) and flush DNS-
ipconfig /flushdns
"%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Application Cache\."
del /S /Q "%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Cache\."
del /S /Q "%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Media Cache\."
del /S /Q "%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\GPUCache\."
rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
--------------------------------------------------
Remove microsoft cache-
del /S /Q "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\IconCacheToDelete\."
--------------------------------------------------
Clear logs and error reports-
dir /S /b "%userprofile%\AppData">> tmp.txt
for /F "usebackq tokens=*" %%A in (findstr /E ".log" tmp.txt) do if exist "%%A" del /S /Q "%%A"
for /F "usebackq tokens=*" %%A in (findstr /E ".old" tmp.txt) do if exist "%%A" del /S /Q "%%A"
del /S /Q "C:\ProgramData\Microsoft\Windows\WER\ReportArchive\."
del /S /Q "C:\ProgramData\Microsoft\Windows\WER\ReportQueue\."
--------------------------------------------------
Clear temporary files folder-
dir /s /b "%tmp%"> tmp.txt
for /F "usebackq tokens=*" %%A in (tmp.txt) do (
del /Q "%%A"
rmdir /S /Q "%%A"
)
if exist tmp.txt del /q tmp.txt
Free Up Memory(RAM)
Disable auto enabled task-
schtasks /change /tn GoogleUpdateTaskMachineUA /DISABLE
schtasks /change /tn GoogleUpdateTaskMachineCore /DISABLE
schtasks /change /tn MapsUpdateTask /DISABLE
--------------------------------------------------
Disable high ram consuming task-
Taskkill /F /IM SearchUI.exe
Taskkill /F /IM OneDrive.exe
Taskkill /F /IM SystemSettings.exe
Taskkill /F /IM WinStore.Mobile.exe
Taskkill /F /IM igfxTray.exe
Taskkill /F /IM igfxTray.exe
Taskkill /F /IM uTorrent.exe
Taskkill /F /IM SkypeHost.exe
Taskkill /F /IM spoolsv.exe
Taskkill /F /IM SearchIndexer.exe
--------------------------------------------------
Disable microsoft update seeing(ram and internet data consuming)-
powershell mkdir -Force "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization"
powershell sp "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" "DODownloadMode" 0
Other Things to Help Performance
Empty recyclebin-
rmdir /S /Q "%systemdrive%\$Recycle.bin\." & mkdir "%systemdrive%\$Recycle.bin"
--------------------------------------------------
Clear crash dumps-
rmdir /S /Q "%userprofile%\AppData\Local\CrashDumps" & mkdir "%userprofile%\AppData\Local\CrashDumps"
--------------------------------------------------
Delete windows demo files(useless with activated windows-
del /S /Q "C:\ProgramData\Microsoft\Windows\RetailDemo\."
rmdir /S /Q "C:\ProgramData\Microsoft\Windows\RetailDemo\."
Optimize Booting Time and Performance
Defragment your system drive-
defrag %SystemDrive% /U /V
--------------------------------------------------
Reduce boot delay-
"C:\Windows\System32\bcdedit.exe" /timeout 3
--------------------------------------------------
Defragment boot partition-
defrag -b %SystemDrive%
See the Difference
To check your free physical memory-
wmic os get freephysicalmemory /format:value | find "FreePhysicalMemory"
--------------------------------------------------
To check your hard disk free space-
fsutil volume diskfree c: | find "Total # of free bytes">tmp.txt
FOR /f "tokens=7 delims= " %%A in (tmp.txt) do (
set MEMORY=%%A
)
echo %MEMORY%