Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Clean Up Your Windows System Using Built-in Tools

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.

Using Disk Cleanup

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.

  1. Open Disk Cleanup:

    • Press Win + R to open the Run dialog.
    • Type cleanmgr and press Enter.
    • Select the drive you want to clean (usually the C: drive) and click OK.
  2. Select Files to Delete:

    • Disk Cleanup will calculate how much space you can free up.
    • Check the boxes next to the types of files you want to delete.
    • Click OK, then click Delete Files to confirm.

Cleaning Up System Files

For a more thorough cleanup, you can also remove system files:

  1. Open Disk Cleanup for System Files:

    • Follow the steps above to open Disk Cleanup.
    • Click on the "Clean up system files" button.
    • Select the drive again and click OK.
  2. Select System Files to Delete:

    • Check the boxes next to the system files you want to remove, such as Windows Update Cleanup.
    • Click OK, then click Delete Files to confirm.

Using Command Prompt for Cleanup

You can also use the Command Prompt to perform cleanup tasks.

  1. Clean Temporary Files:

    • Open Command Prompt as an administrator.
    • Run the following command to delete temporary files:
      del /q/f/s %TEMP%\*
  2. Clean Windows Update Files:

    • Run the following command to clean up Windows Update files:
      cleanmgr /sageset:1
      cleanmgr /sagerun:1

Using PowerShell for Advanced Cleanup

PowerShell provides more advanced options for cleaning up your system.

  1. Remove Temporary Files:

    • Open PowerShell as an administrator.
    • Run the following command:
      Get-ChildItem -Path $env:TEMP -Recurse | Remove-Item -Force -Recurse
  2. Clear Event Logs:

    • Run the following command to clear event logs:
      wevtutil el | ForEach-Object {wevtutil cl "$_"}

Examples

  • 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

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.