Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
In the context of Windows operating systems, the term "limpar" translates to "clean" in English. Cleaning up a Windows system is an essential maintenance task that helps improve performance, free up disk space, and ensure the system runs smoothly. This article will guide you through various methods to clean up your Windows system using built-in tools and commands.
Disk Cleanup is a built-in Windows utility that helps you remove unnecessary files from your computer, such as temporary files, system cache, and more.
Open Disk Cleanup:
Win + R
to open the Run dialog.cleanmgr
and press Enter.Select Files to Delete:
For a more thorough cleanup, you can also remove system files:
Open Disk Cleanup for System Files:
Select System Files to Delete:
You can also use the Command Prompt to perform cleanup tasks.
Clean Temporary Files:
del /q/f/s %TEMP%\*
Clean Windows Update Files:
cleanmgr /sageset:1
cleanmgr /sagerun:1
PowerShell provides more advanced options for cleaning up your system.
Remove Temporary Files:
Get-ChildItem -Path $env:TEMP -Recurse | Remove-Item -Force -Recurse
Clear Event Logs:
wevtutil el | ForEach-Object {wevtutil cl "$_"}
Disk Cleanup via Command Prompt:
cleanmgr /sageset:65535 & cleanmgr /sagerun:65535
PowerShell Script to Remove Old Files:
$path = "C:\Path\To\Directory"
$days = 30
Get-ChildItem -Path $path -Recurse | Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-$days) } | Remove-Item -Force