Process cannot access file error fix on Windows 11/10
May 12, 2023 pm 07:10 PMAs we all know, when any file is in use, no other process can access/change it. In this case, when a process attempts to open a file, the operating system locks the file to prevent it from being modified by another process.
"The process cannot access the file because it is in use by another process" is such an error message observed by many users on their Windows computers. This error is known to occur in different versions of Windows OS and Windows Server. Usually, this error message is observed during usage of Netsh command on the user’s Windows PC. Another situation where this error occurs is when trying to open any service or website in the Internet Information Services (IIS) Microsoft Management Console (MMC) snap-in.
Are you seeing this error message on your system? Then you've found the right position. In this article, we have put together a series of troubleshooting strategies that can help users facing this error successfully resolve the issue on their Windows PC.
Solution 1 – Close all unnecessary background processes
One of the most basic troubleshooting methods to resolve this error is to close all unnecessary background processes running on your PC via Task Manager process.
1. Open the Task Manager by pressing the Ctrl Shift Esc keys on the keyboard simultaneously.
2. Go to the Processes tab in Task Manager.
3. Here, select the unnecessary processes running in the background of your PC one at a time.
Then, click the End Task button.
Do this for any unnecessary applications you can see in Task Manager.
Note: Make sure you do not end processes related to Windows and Microsoft services.
4.Restart your computer.
After the system boots, try performing the task that caused the problem to check if it has been fixed.
Solution 2 – Run the application as administrator
If you encounter an error when trying to execute the netsh command in the terminal, it is likely that the command requires administrative privileges to run and make modifications. Therefore, before running the command, make sure that the command prompt window you are using has administrative rights.
1. Use the Windows R key combination to open the Run dialog box.
2. Type cmd in the run box.
Then, just hold down the Ctrl Shift Enter keys simultaneously to run Command Prompt as administrator.
3. When the User Account Control prompt appears to grant permissions, click the Yes button.
4. Now, try executing the command in the command prompt and check if the error is resolved.
Solution 3 – Modify IP Range
This error may occur if some processes on the system are using port 80 or port 443. Many users have been able to resolve this conflict by setting up a completely different IP range.
1. Click the Windows key on your keyboard and type the text Command Prompt in the search box.
After selecting Command Prompt in the search results, click on the right to run as administrator .
#2. After opening the command prompt with administrator rights, type the following commands in sequence, and press EnterChange the IP range of TCP and UDP ports.
netsh int ipv4 設(shè)置動(dòng)態(tài)端口 tcp start=10000 num=1000netsh int ipv4 set dynamicport udp start=10000 num=1000
#3. Check if this helps resolve the issue you are facing. If the problem persists, move on to the next solution below.
Solution 4 – Resolve the IIS port conflict by changing the registry
To resolve the IIS port conflict, you need to run the Netstat.exe utility to determine if there is any other activity on port 80 or port 443 connect. This error message may occur as described below: The
- registry subkey ListenOnlyList is configured incorrectly on the computer that is running IIS.
- Port 80 and port 443 required by IIS are used by another process.
After using the Netstat.exe utility, if you see no active connections to the above ports from other processes, you need to check the ListenOnlyListregistry subkey configuration.
1. Use the Windows and R key combination on your keyboard to open the Run box.
Type cmd and run Command Prompt with administrator privileges by pressing Ctrl Shift Enter key simultaneously .
當(dāng)用戶帳戶控制提示時(shí)單擊是。
2. 鍵入以下命令并按Enter以運(yùn)行 Netstat.exe 實(shí)用程序。
netstat -ano
上面的命令返回一個(gè)活動(dòng)連接列表。
滾動(dòng)瀏覽此列表并檢查端口 80 和端口 443 是否正在被任何其他進(jìn)程使用。
如果上面提到的端口沒有被積極使用,那么您需要對(duì)注冊表中的鍵進(jìn)行更改。
3. 在對(duì)注冊表進(jìn)行任何修改之前,您需要停止運(yùn)行 IIS 的 HTTP 服務(wù)。
在命令提示符下鍵入命令,然后按 Enter。
網(wǎng)絡(luò)停止http
4. 當(dāng)你被問到你想繼續(xù)這個(gè)操作嗎?,鍵入Y并按Enter繼續(xù)。
禁用 HTTP 端口后關(guān)閉命令提示符。
5. 點(diǎn)擊鍵盤上的Windows鍵并在 Windows 搜索欄中鍵入注冊表編輯器。
單擊注冊表編輯器。
如果UAC提示您授予權(quán)限,請單擊是。
6. 在注冊表編輯器窗口中,導(dǎo)航到下面的位置或?qū)⑵鋸?fù)制并粘貼到注冊表的導(dǎo)航欄中。
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\ListenOnlyList
注意:如果沒有找到ListenOnlyList子項(xiàng),則無需創(chuàng)建子項(xiàng),因?yàn)閷⑹褂媚J(rèn) IP 地址0.0.0.0。
7. 現(xiàn)在,您需要移到右側(cè)并刪除除默認(rèn)值0.0.0.0以外的所有 IP 地址
右鍵單擊每個(gè)IP 地址并選擇刪除選項(xiàng)。
在彈出的確認(rèn)刪除子項(xiàng)的窗口中,單擊是。
8. 退出注冊表并重新啟動(dòng)計(jì)算機(jī)。
9、系統(tǒng)啟動(dòng)后,需要啟動(dòng)HTTP服務(wù)。
如上所示啟動(dòng)命令提示符。
鍵入下面的命令,然后按 Enter。
網(wǎng)絡(luò)啟動(dòng)http
10. HTTP 服務(wù)啟動(dòng)后,嘗試運(yùn)行 IIS(Internet 信息服務(wù))并檢查錯(cuò)誤是否已解決。
The above is the detailed content of Process cannot access file error fix on Windows 11/10. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Converting an HTML file to a URL requires a web server, which involves the following steps: Obtain a web server. Set up a web server. Upload HTML file. Create a domain name. Route the request.

In the process of using the Windows 10 operating system, many users find that it takes a long time to start up their computers, which affects the user experience. In order to optimize the boot speed, some people have suggested that the purpose can be achieved by modifying the system registry. In response to this demand, this article will provide an in-depth analysis of how to effectively improve computer startup speed by properly adjusting Windows 10 registry settings. Let’s take a look below. Operation method 1. Use the "win+R" shortcut key to start running, enter "regedit", and click "OK" to open. 2. After entering the Registry Editor, click "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurren" in the left column

In the Windows 11 operating system, User Account Control (UAC) serves as a security mechanism that can effectively prevent unauthorized system changes and prompt potential risks. For those who want to adjust the UAC behavior of standard user accounts through deeper settings, this article will explain in detail how to use the Registry Editor tool to make corresponding settings changes in Windows 11 systems. Operation method 1. Right-click "Start" in the taskbar in the lower right corner and select "Run" in the option list. 2. Enter "regedit" in the pop-up run window and press Enter to open it. 3. Then click "Yes" in the prompt window given. 4. After entering the Registry Editor, click "HKEY_" in the left column

Author | Editor Chen Xupeng | ScienceAI Aphasia due to defects in the nervous system can lead to serious life disabilities, and it may limit people's professional and social lives. In recent years, the rapid development of deep learning and brain-computer interface (BCI) technology has provided the feasibility of developing neurospeech prostheses that can help aphasic people communicate. However, speech decoding of neural signals faces challenges. Recently, researchers from VideoLab and FlinkerLab at the University of Jordan have developed a new type of differentiable speech synthesizer that can use a lightweight convolutional neural network to encode speech into a series of interpretable speech parameters (such as pitch, loudness, formant frequency, etc.), and synthesize these parameters into speech through a differentiable neural network. this synthesizer

Use most text editors to open XML files; if you need a more intuitive tree display, you can use an XML editor, such as Oxygen XML Editor or XMLSpy; if you process XML data in a program, you need to use a programming language (such as Python) and XML libraries (such as xml.etree.ElementTree) to parse.

IIS is a web server software developed by Microsoft to host websites and applications. 1. Installing IIS can be done through the "Add Roles and Features" wizard in Windows. 2. Creating a website can be achieved through PowerShell scripts. 3. Configure URL rewrites can be implemented through web.config file to improve security and SEO. 4. Debugging can be done by checking IIS logs, permission settings and performance monitoring. 5. Optimizing IIS performance can be achieved by enabling compression, configuring caching and load balancing.

C++ function naming convention follows camel case naming or Pascal naming. It is recommended to use descriptive, concise function names that avoid abbreviations and special characters. Overloaded functions can be distinguished by differentiating parameters, using suffixes, or namespaces. Function naming conventions that have single-letter names, are ambiguous, are overly specific, or contain special characters should be avoided.

Bootstrap provides a simple guide to setting up navigation bars: Introducing the Bootstrap library to create navigation bar containers Add brand identity Create navigation links Add other elements (optional) Adjust styles (optional)