On Windows 11, sometimes, you may have to delete or move a file to another location, but at the time you take action, you will get a warning saying that you can’t complete the action because another program is using the file.
Usually, it can be obvious to determine the app using the file, but other times, you will get a warning when you don’t have any application running on Windows 11. When this happens, you can use the File Locksmith tool available on PowerToys 0.64 and higher to identify the process and unlock the file.
This guide will teach you the easy ways to find out the process (program) locking a file on Windows 11 with the PowerToys File Locksmith. (These instructions should also work on Windows 10.)
Determine process locking file on Windows 11
To identify which process is locking a file on Windows 11, use these steps:
-
Open PowerToys on Windows 11.
-
Click on File Locksmith.
-
Turn on the Enable File Locksmith toggle switch.
-
Open File Explorer.
-
Browse to the location with the locked file.
-
Right-click the file and choose “Show more options.” Or Shift + right-click the file to open the classic context menu.
-
Select the “What’s using this file” option.
-
Click the process (program) locking the file to view its Process ID, User, and Files.
-
(Optional) Right-click the File Locksmith icon in the Taskbar, and right-click on PowerToys.FileLocksmith, and select the Run as Administrator option to run the tool as an administrator to view the process from all users. Otherwise, you will only see the processes locking the file from the current user.
-
(Optional) Click the End task button for each process to unlock the file on Windows 11.
Once you complete the steps, you can move the file to another location or delete it from Windows 11 (or 10).