Views:

Estimated reading time: 3 minutes

In this guide, you will learn:

What are Duplicate Files?

Duplicate files do nothing but clutter up your drive, make your Windows computer run slower, and increase the difficulty level significantly.

When it comes to finding the right version of a specific file: is it the one I just updated, or the other one?

Skip the DIY - Let Our Experts Get Your PC Cleaned with PC Tune Up Service πŸ‘¨β€πŸ”§

Struggling with a cluttered PC filled with duplicate files? Our PC Clean-Up Service is here to free up valuable storage space and enhance your PC's efficiency.

  • One-Time Purchase: Buy it once and use it whenever you need. Perfect for straightforward, no-fuss optimization.
  • Remote Assistance: Our experts take care of everything from a distance. You can relax at home while we optimize your PC to run smoothly and clutter-free..
  • Available 24/7: Contact us anytime, day or night, to arrange your service. We're here to assist whenever you need us.
  • Why It’s Worth It: Only $39.95. It's a small investment for significant peace of mind and enhanced PC performance.

Buy PC Tune Up Service Now!

🧹 Skip the DIY – πŸš€ Optimize Your PC with Trend Micro Security Suite Ultimate!πŸ‘¨β€πŸ”§

Take your Window's performance to the next level with Trend Micro Security Suite Ultimate. Our comprehensive security solution not only protects your device but also includes tools to optimize and clean your Windows computer.

  • Windows Cleaner: Easily clean cache, cookies, and other duplicate files.
  • 24/7 Remote Tech Support: Get help whenever you need it.
  • Comprehensive Protection: Antivirus, malware, ransomware & spyware protection.
  • Privacy Shield: Secure VPN and anti-track features to protect your privacy.
  • Anti-Scam & Spam Filter: Keep messages clean from unwanted content and alerts for potential scams.

Buy Trend Micro Security Suite Ultimate Now!

🧹 Skip the DIY – πŸš€ Optimize Your PC with Trend Micro Security Suite Ultimate!πŸ‘¨β€πŸ”§

Take your Window's performance to the next level with Trend Micro Security Suite Ultimate. Our comprehensive security solution not only protects your device but also includes tools to optimize and clean your Windows computer.

  • Windows Cleaner: Easily clean cache, cookies, and other duplicate files.
  • 24/7 Remote Tech Support: Get help whenever you need it.
  • Comprehensive Protection: Antivirus, malware, ransomware & spyware protection.
  • Privacy Shield: Secure VPN and anti-track features to protect your privacy.
  • Anti-Scam & Spam Filter: Keep messages clean from unwanted content and alerts for potential scams.

Buy Trend Micro Security Suite Ultimate Now!

Remove Duplicate Files using File Explorer

Finding and removing duplicate files on Windows can be a breeze. Just follow these simple steps:

  1. On the lower-left corner beside the Windows ⊞ icon, enter Indexing Options on the search bar, then click Indexing Options.

    Open Indexing options to find duplicate files

  2. Click Modify, and then select Show all locations.

    Show all locations to find duplicate files

    A pop up will appear to ask for your login details. Make sure that you are using an administrator account when doing any modification using this setting.

  3. Check if all of the boxes are checked under the Changed selected locations section.
    If yes, click OK, and then click the Close button. If not, check all the boxes.

    Opening changed selected locations to find duplicate files

  4. On your keyboard, press the Windows ⊞ + E keys to open the File Explorer.

    It is easier to find your files under your user account. To open your user account, go to Windows (C:), then select Users folder.

  5. On the upper-right corner, click Search, and then enter the following extensions based on their format:
    Images

    .jpg,.jpeg, .png or .gif

    Videos

    .flv,.mov,.avi,.wmv,.mp4 or .3gp

    Music

    .mp3,.wav or.wma

    Microsoft Word

    .doc or.docx

    Microsoft Powerpoint

    .ppt or .pptx

    Microsoft Excel

    .xls or .xlsx

    PDF file

    .pdf

    Text file

    .txt

    Executable programs

    .exe

  6. Sort the search results by Name:
    1. Click the View tab.
    2. Under the Panes section, select Preview pane.
    3. Under the Layout section, select Details.
    4. Under the Current view section, click Group by, and then select Name.

      To arrange the files in ascending order, click Group by, and then select Ascending.

  7. Check for the duplicate files that are saved in different locations. Check the Date modified column to know which files you have the latest version.

    Sort results to find duplicate files

  8. After checking the files, select the file you want to delete, and then press DELETE on your keyboard.

Remove Duplicate Files using Windows PowerShell

You can also get rid of duplicate files with Windows Powershell, a command-line scripting tool to manage your Windows operating system.

  1. On the lower-left corner, right-click on the Windows ⊞ icon, and then select Windows PowerShell (Admin).

    Open Windows Powershell to delete duplicate files

    A pop-up confirmation window will appear. Click Yes to proceed.

  2. Enter this script: set-location –path C:\ in the Windows Powershell window.

    set-location –path C:\

  3. Enter the script for the list of all duplicates and their location:
    ls "(directory you want to search)" -recurse | get-filehash | group -property hash | where { $_.count -gt 1 } | % { $_.group } | Out-File -FilePath "(location where you want to export the result)"

    ls

    • In (directory you want to search), enter the folder location of your User Account.
    • In (location where you want to export the result), enter the folder location you want the result to be exported or saved (e.g. Documents or Desktop).
  4. After entering the script, there would be two results that will appear:
    • If there is an error:

      Error in the list all duplicates

      This error message means that the searching of files is still on-going.

    • If no errors were found:

      List all duplicates

      This message means that the searching of files is done.

  5. Open the folder location you have exported or saved.
  6. Check for each location in the text file, and then delete the duplicate files.

    Result of the duplicated files using Windows Powershell

    By using Windows Powershell, it will search and display all of the duplicate files regardless of their extension format (e.g. .mp3, .png or .txt).

  7. Enter this script to automatically delete all duplicate files on the Windows Powershell window:
    ls "(directory you want to search)" -recurse | get-filehash | group -property hash | where { $_.count -gt 1 } | % { $_.group | select -skip 1 } | del

    ls

    • In (directory you want to search), enter the folder location of your User Account.
    • To view all files to be deleted, you may change the del to Out-File -FilePath (in FilePath, enter the folder location you want to export or save the result file.)

Visit the Cybersecurity Learning Center!

BOOST YOUR DEVICE'S LIFESPAN AND PRODUCTIVITY

Explore strategies to enhance your device's performance and get valuable insights on safeguarding yourself against scams, maintaining network security, and protecting your personal identity.

Visit our πŸ‘‰ Cybersecurity Learning Center! πŸ‘ˆ

Comments (0)
Add a comment