netsh 错误:该进程无法访问该文件,因为它正被另一个进程使用

5 netsh windows-server-2016

它是运行 Windows Server 2016 Essentials 的服务器。Intuit 以其无限的智慧希望我在我们的文件服务器上运行这个命令:

netsh int ipv4 add excludedportrange protocol=udp startport=55368 numberofports=5
Run Code Online (Sandbox Code Playgroud)

我得到的错误信息是:

该进程无法访问该文件,因为它正被另一个进程使用。

那么有谁知道我们在谈论什么文件以及它可能打开了什么过程?

Dan*_*ler 7

如果您已经排除了这些端口,则会发生该错误。我知道令人困惑的错误消息。

检查您已经使用的内容netsh int ipv4 show excludedportrange protocol=udp


You*_*ius -1

该命令似乎试图将排除项添加到 Windows 和应用程序的动态端口范围。

Did you try running it as Administrator? (You can type CMD into the Windows search on the Task Bar, and then right-click on the CMD icon and hit "Run as Administrator.")

I would recommend simply disabling the Windows Firewall and testing it to see if that solves the issue --- then build back up your security and port exclusions from there.