search
HomeCommon ProblemProcess cannot access file error fix on Windows 11/10
Process cannot access file error fix on Windows 11/10May 12, 2023 pm 07:10 PM
iisRegistryTechnology Newscommand promptnetwork portcomputer port

As 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.

进程无法访问 Windows 11 / 10 上的文件错误修复

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.

进程无法访问 Windows 11 / 10 上的文件错误修复

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 .

进程无法访问 Windows 11 / 10 上的文件错误修复

#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 设置动态端口 tcp start=10000 num=1000netsh int ipv4 set dynamicport udp start=10000 num=1000

进程无法访问 Windows 11 / 10 上的文件错误修复

#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 .

进程无法访问 Windows 11 / 10 上的文件错误修复

当用户帐户控制提示时单击是。

2. 键入以下命令并按Enter以运行 Netstat.exe 实用程序。

netstat -ano

上面的命令返回一个活动连接列表。

进程无法访问 Windows 11 / 10 上的文件错误修复

滚动浏览此列表并检查端口 80 和端口 443 是否正在被任何其他进程使用。

如果上面提到的端口没有被积极使用,那么您需要对注册表中的键进行更改。

3. 在对注册表进行任何修改之前,您需要停止运行 IIS 的 HTTP 服务。

在命令提示符下键入命令,然后按 Enter。

网络停止http

4. 当你被问到你想继续这个操作吗?,键入Y并按Enter继续。

禁用 HTTP 端口后关闭命令提示符。

进程无法访问 Windows 11 / 10 上的文件错误修复

5. 点击键盘上的Windows键并在 Windows 搜索栏中键入注册表编辑器。

单击注册表编辑器。

进程无法访问 Windows 11 / 10 上的文件错误修复

如果UAC提示您授予权限,请单击是。

6. 在注册表编辑器窗口中,导航到下面的位置或将其复制并粘贴到注册表的导航栏中。

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\ListenOnlyList

注意:如果没有找到ListenOnlyList子项,则无需创建子项,因为将使用默认 IP 地址0.0.0.0

进程无法访问 Windows 11 / 10 上的文件错误修复

7. 现在,您需要移到右侧并删除除默认值0.0.0.0以外的所有 IP 地址

右键单击每个IP 地址并选择删除选项。

进程无法访问 Windows 11 / 10 上的文件错误修复

在弹出的确认删除子项的窗口中,单击是。

进程无法访问 Windows 11 / 10 上的文件错误修复

8. 退出注册表并重新启动计算机。

9、系统启动后,需要启动HTTP服务。

如上所示启动命令提示符。

键入下面的命令,然后按 Enter。

网络启动http

10. HTTP 服务启动后,尝试运行 IIS(Internet 信息服务)并检查错误是否已解决。

进程无法访问 Windows 11 / 10 上的文件错误修复

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!

Statement
This article is reproduced at:云东方. If there is any infringement, please contact admin@php.cn delete
修复:Windows 11 激活错误 0xc004f213修复:Windows 11 激活错误 0xc004f213Apr 13, 2023 pm 05:40 PM

激活 Windows 11 操作系统的过程变得非常简单。还有一种情况是密钥已预先编程到 BIOS 中,您不需要输入任何信息。但是,用户报告收到 Windows 11 激活错误 0xc004f213 消息。许可证密钥有助于确认您的操作系统副本是正版的,并且它没有安装在超过 Microsoft 软件许可条款允许的设备上。跟随我们将向您展示如何修复 Windows 11 激活错误 0xc004f213,就在我们看到为什么在您获得新的笔记本电脑/计算机后立即激活您的 Windows 副本很重要之后。跟上

Windows 10/11 上的病毒和威胁防护引擎不可用问题Windows 10/11 上的病毒和威胁防护引擎不可用问题Apr 13, 2023 pm 02:01 PM

Windows Defender是一种保护系统免受病毒攻击的功能。尝试安装最新的安全更新时,一些用户收到一条错误消息,指出“病毒和威胁防护引擎不可用”。此错误主要是由于系统文件损坏,系统上的更新过时或Windows更新中的某些问题等。可以通过安装最新更新、重置 Windows 安全中心应用程序、调整注册表编辑器项等来解决。在本文中,我们提供了一些解决方案,可帮助您在Windows计算机上解决此问题。方法 1 – 运行 Windows 更新疑难解答步骤 1 –一起使用Windows + I键打开窗

修复 Windows 11 中 Sxstrace.exe 运行时错误的 5 种方法修复 Windows 11 中 Sxstrace.exe 运行时错误的 5 种方法Apr 13, 2023 pm 04:13 PM

Windows 用户有时会发现启动程序很困难,在这种情况下可能会收到一条错误消息,要求使用命令行 sxstrace.exe 工具了解更多详细信息。sxstrace.exe 由 Microsoft 于 2006 年 11 月首次为 Windows 引入,从那时起,它一直是 Windows 不可或缺的一部分。什么是sxstrace exe?sxstrace.exe 是 Windows 中的可执行应用程序文件。通常,这些类型的文件包含许多指令,这些指令在打开文件时由您的计算机执行。如果您一直在寻找解决

如何在 Windows 11 / 10 的文件资源管理器中仅搜索和获取视频文件如何在 Windows 11 / 10 的文件资源管理器中仅搜索和获取视频文件Apr 13, 2023 pm 04:55 PM

一些用户浏览每个文件夹来搜索电影,这很忙,但现在好消息是您可以只搜索视频文件,它会在 Windows 系统的文件资源管理器的搜索结果中列出它们。您不仅可以搜索视频文件,还可以搜索带有文件名或文件格式的视频文件。如果你也在考虑怎么做,别担心!我们在本文中通过简短的步骤对其进行解释,以便用户可以轻松地仅检索视频文件。如何在 Windows 11 文件资源管理器中仅搜索和获取视频文件用户可以通过 3 种方式在 Windows 系统上搜索视频文件。用户可以仅搜索视频文件,该视频文件检索所有类型为视频或使

如何修复您尝试安装的应用不是 Windows 上经过 Microsoft 验证的应用如何修复您尝试安装的应用不是 Windows 上经过 Microsoft 验证的应用Apr 13, 2023 pm 05:52 PM

Microsoft Windows 10 和 11 可能配置为仅允许在设备上安装某些类型的应用程序。该限制可能是有意的,例如,当限制可以安装在设备上的内容的策略到位时,但有时也是无意的。以下指南提供了易于遵循的分步说明,以解决意外出现的错误消息。尝试安装某些类型的应用程序的 Windows 用户可能会收到错误消息“您尝试安装的应用程序不是 Microsoft 验证的应用程序”。该对话框几乎没有提供有关安装被阻止原因的信息。它指出“从商店安装应用程序有助于保护您的 PC 并使其平稳运行”,并链接到

如何修复 Windows 11 代理错误 [快速修复]如何修复 Windows 11 代理错误 [快速修复]Apr 13, 2023 pm 06:58 PM

无论您运行的是 Windows 11 还是其他操作系统,收到代理错误的烦人体验都是相同的。通常,代理错误消息表明您无权进入特定网站或网页。此外,它表明在短时间内有多个请求来源。例如,如果您尝试多次登录您的帐户,服务器将阻止该请求并阻碍连接。这些问题通常是服务器端问题。但是,在某些情况下,错误源会追溯到 Windows 11 中的客户端,例如某些系统配置错误。因此,要修复 Windows 11 代理错误,您需要应用一些更改或重置您的设置。因此,我们为您提供了解决此问题的有用说明。是什么导致代理错误

如何修复 Microsoft Office 365 卡在准备就绪上如何修复 Microsoft Office 365 卡在准备就绪上Apr 13, 2023 pm 06:28 PM

许多用户在他们的 Windows PC 上安装Microsoft Office 365时报告了一个问题。问题是安装程序卡在“我们正在准备就绪” 消息上。看到此消息后,用户将无法再次安装 Office 365。当以前的 Office 365 文件未正确安装或损坏时,可能会发生这种情况。有时兼容性问题或安装过程中缺少某些权限可能会导致此错误。在 Office 365 安装过程中,您是否还停留在“准备就绪”错误?然后,继续阅读这篇文章。在这里,我们讨论了一些故障排除策略,可以帮助您解决计算机上的此错误

联系人未同步到 Apple Watch?怎么修联系人未同步到 Apple Watch?怎么修Apr 13, 2023 pm 02:04 PM

Apple Watch 让您可以轻松地直接从手腕上给某人打电话和发送消息,但如果您的手表上缺少联系人,您可能会遇到多个问题。识别出您是从谁那里接到电话或消息可能会很烦人,因此,您可能无法使用 Siri 给手表上不可用的联系人打电话或发短信。如果你的 iPhone 上有一堆联系人在你的 Apple Watch 上丢失了,下面的帖子应该可以帮助你解决这个问题,这样你就可以帮助你找回丢失的联系人。 为什么联系人没有同步到我的 Apple Watch?如果您的 Apple Watch 显示的联系人与您保

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool