Several Windows users are encountering the “The process cannot access the file because it is being used by another process” error. Most of the time, the issue occurs when the user tries to lớn run a netsh command. Some users are reporting that for them, the error message appears when they try to lớn right-click a trang web in the IIS (Internet Information Services ) MMC (Microsoft Management Console) snap-in.
Bạn đang xem: Process cannot access the file because it is being used by another process

The issue is reported to lớn occur on Windows Vista, Windows 7, Windows 8.1, Windows 10 and on various Windows vps versions.
What causes the process to lớn be used by another process?
We investigated this particular issue by looking at various user reports và the repair strategies that they used khổng lồ get the issue resolved. Based on what we were able lớn gather, there are several common scenarios that will trigger this particular error message:
The command requires admin privileges – If you’re encountering the error inside a terminal, it’s most likely because you don’t have administrative privileges khổng lồ make the modifications. Several users in a similar situation have managed lớn get the issue resolved by granting admin privileges.Another process is using port 80 or port 443 – This is typical with computers running IIS (Internet Information Services). If another process is using these two ports, you will see this error message.The ListenOnlyList registry subkey is not configured correctly – Another common scenario with IIS (Internet Information services) that will trigger this particular error is an incorrectly configured ListenOnlyList registry subkey.
If you’re currently struggling to lớn resolve this particular error message, this article will provide you with a collection of verified troubleshooting steps. Down below, you have a collection of methods that other users in a similar situation have used to get the issue resolved.
For the best results, follow the methods below in order until you encounter a fix that is effective in resolving the error in your particular scenario.
Let’s begin!
Method 1: Running the command with admin privileges
If you’re getting this error when trying to lớn run a netsh command, it’s likely that the error is occurring because you don’t have admin privileges. This is reported to lớn occur more than often when the user tries khổng lồ run a command that adds exclusions to the dynamic port range for native Windows apps or 3rd buổi tiệc nhỏ application.
Keep in mind that an operation of this kind will require administrator privileges. To ensure that the CMD window you’re trying to lớn perform the kích hoạt in has admin privileges, follow the steps below:
Press Windows key + R to xuất hiện up a Run dialog box. Then, type “cmd” & press Ctrl + Shift + Enter to mở cửa up an elevated Command Prompt.Opening an elevated Command Prompt windowWhen prompted by the UAC (User trương mục Control), click Yes lớn grant admin privileges.In the elevated Command Prompt, run the command again & see if you’re still encountering the same error message.
If you’re still getting the “The process cannot access the tệp tin because it is being used by another process” error or this scenario wasn’t applicable, move down khổng lồ the next method below.
Method 2: Setting a different IP range
If you’re trying lớn resolve a conflict DNS conflict using netsh & the method above didn’t help you, you might want to try a different approach.
Xem thêm: Cách Viết Cv Ấn Tượng Bằng Tiếng Anh Tạo Ấn Tượng Nhất Với Nhà Tuyển Dụng
Several users struggling lớn resolve the same error message have found that the conflict is resolved after they tried lớn set a completely different IP range instead of creating an exclusion range.
Below you have a couple of commands that one affected user successfully ran to resolve a conflict between DNS và Quickbooks:
netsh int ipv4 mix dynamicport tcp start=10000 num=1000netsh int ipv4 phối dynamicport udp start=10000 num=1000Note: Ensure that the terminal you’re running the command in has admin privileges.
If this method didn’t resolve the conflict or wasn’t applicable khổng lồ the situation that you’re encountering, move down khổng lồ the final method.
Method 3: Resolving the IIS port conflict
If you are encountering the issue while trying to right-click a website thành quả inside the IIS MMC snap-in (clicking Start doesn’t vị anything), you’ll need to use the Netstat.exe utility to lớn figure out if another process is using port 80 and port 443.
This issue is quite common with computers running Microsoft IIS 6.0 và 7.0. Based on the official Microsoft documentation, the error message will appear if one of the following conditions are applicable to your current situation:
The ListenOnlyList registry subkey is not configured correctly on the IIS running computer.Another process is using the TCP port (80) or the SSL port (443) required by the IIS.To resolve this issue, we’ll need lớn deploy the Netstat.exe utility in order lớn determine if another process is using the ports specified above. If the utility determines that the ports are not being used, we’ll examine the ListenOnlyList subkey khổng lồ see if it’s correctly configured.
Here’s a step-by-step guide through the whole thing:
Press Windows key + R to mở cửa up a Run dialog box. Then, type “cmd” và press Ctrl + Shift + Enter to open up an elevated Command Prompt. When prompted by the UAC (User account Control), click Yes khổng lồ grant administrative privileges.Opening an elevated Command Prompt windowInside the elevated command prompt, run the following command lớn start the Netstat.exe utility:
netstat -anoOnce you get a return, scroll through the các mục of Active Connections & verify whether the ports 50 and 443 are being actively used by a different process.



