Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Find What's Using a File with PowerToys

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

PowerToys from Microsoft includes a tool called File Locksmith that shows which processes are currently using a file or folder, and lets you end those processes right from the same window. This is the quickest way to resolve “file in use” errors in Windows. You need Windows 10 or 11 and the latest PowerToys installed from the Microsoft Store or the official GitHub release.

What You'll Need

  • Windows 10 or Windows 11
  • PowerToys installed (free, from Microsoft Store or official GitHub)
  • Administrator rights (optional, but needed to end some system processes)

Step-by-Step

  1. Install PowerToys – If you don’t have it, open the Microsoft Store, search for “PowerToys,” and click Install. Alternatively, download the latest release from the official Microsoft PowerToys GitHub page and run the installer.
  2. Open PowerToys Settings – After installation, launch PowerToys from the Start menu. It runs in the system tray (bottom-right corner, near the clock).
  3. Enable File Locksmith – In PowerToys Settings, click on File Locksmith in the left sidebar. Toggle the switch to On if it isn’t already. (Note: labels may vary slightly by version, but the section is clearly named.)
  4. Close PowerToys Settings – You don’t need to keep the settings window open. File Locksmith works in the background.
  5. Right-click the file or folder – In File Explorer, locate the file that’s giving you trouble (e.g., a file you can’t delete or move). Right-click on it.
  6. Select “Open with File Locksmith” – In the context menu, you’ll see an option called Open with File Locksmith. Click it. (If you don’t see it, make sure File Locksmith is enabled in PowerToys Settings and that PowerToys is running.)
  7. Review the list of processes – A small window appears showing every process that has the file open. You’ll see the process name (like “explorer.exe” or “chrome.exe”), its PID (Process ID), and the type of lock (e.g., read, write, delete).
  8. Identify the culprit – Look for the process that’s likely causing the issue. If you’re not sure, note the name and search online if needed. Common ones include Windows Explorer, your antivirus, or a program you have running.
  9. End the process (optional) – Click on the process you want to stop, then click the “End process” button at the bottom. Confirm if prompted. This will force-close that application. Warning: Ending a system process (like explorer.exe) can cause temporary UI glitches, but Windows will usually restart it automatically. Save any unsaved work in that app first.
  10. Retry your file operation – After ending the process, try deleting, renaming, or moving the file again. It should work now.

Common Mistakes

  • Forgetting to enable File Locksmith – It’s off by default in some versions. If you don’t see the context menu option, go to PowerToys Settings and turn it on.
  • Ending too many processes – Only end the ones that are actually locking the file. Ending unrelated processes can cause data loss or system instability.
  • Ignoring the “Type” column – Some processes only have a “read” lock, which doesn’t prevent deletion. Focus on processes with “delete” or “write” locks.
  • Not restarting PowerToys after update – If you just updated PowerToys, a restart may be needed for the context menu to appear.

Tips

  • Use it on folders too – File Locksmith works on folders. If you can’t delete a folder, right-click the folder itself and choose “Open with File Locksmith.”
  • Combine with “Restart Explorer” – If explorer.exe is locking a file (common with thumbnail caches), you can end it in File Locksmith and then restart it via Task Manager (File > Run new task > “explorer.exe”).
  • Check for background apps – Cloud sync clients (OneDrive, Dropbox) often lock files. Look for those in the list.
  • Run PowerToys as administrator – If you’re having trouble ending a process, close PowerToys, right-click its icon in the Start menu, and select “Run as administrator.” This gives it more privileges.
  • Use the search bar in File Locksmith – If you have many processes, you can type to filter the list.

Troubleshooting

“Open with File Locksmith” doesn’t appear in the context menu

  • Make sure PowerToys is running (check the system tray).
  • Verify File Locksmith is enabled in PowerToys Settings.
  • Restart PowerToys by right-clicking its tray icon and selecting “Restart.”
  • If you’re on Windows 11, right-click the file and select “Show more options” to see the classic context menu, which includes PowerToys entries.

File Locksmith shows no processes, but the file is still locked

  • Some system-level locks (e.g., from the kernel or certain drivers) may not appear. Try running PowerToys as administrator.
  • If the file is on a network share, the lock might be from another computer. Check with your IT admin.
  • If the file is on a removable drive, try safely ejecting it first.

End process doesn’t work or the file remains locked

  • Some processes require administrator rights to be ended. Run PowerToys as administrator.
  • If the process is a system service, ending it may not be allowed. In that case, reboot your PC and try again immediately after startup.
  • If the file is locked by a background service, you may need to stop that service via the Services app (services.msc).

PowerToys itself is not working

  • Update PowerToys to the latest version from the Microsoft Store or GitHub.
  • Uninstall and reinstall PowerToys.
  • Check the PowerToys GitHub issues page for known bugs.

Frequently Asked Questions

Is File Locksmith free?

Yes, PowerToys is a free, open-source utility from Microsoft.

Can File Locksmith unlock a file without ending the process?

No, it only shows you the processes. You must end the process to release the lock. There’s no “unlock” button that bypasses the lock.

Will ending a process cause data loss?

It can if the process has unsaved data. Always save your work in that application before ending it.

Does File Locksmith work on Windows 10?

Yes, it works on Windows 10 version 2004 and later, as well as Windows 11.

Can I use File Locksmith to see which process is using a specific file in use error dialog?

Yes, just right-click the file in the error dialog’s location and choose “Open with File Locksmith.”

What if File Locksmith doesn’t show any processes, but the file is still locked?

Try running PowerToys as administrator. If that doesn’t help, the lock might be from a driver or system component that File Locksmith can’t see. A reboot is the simplest fix.