“URL 保留删除失败,错误:87”当我“netsh http 删除”时

n17*_*911 10 networking windows

删除规则时出现以下错误:

C:> netsh http delete urlacl url=http://localhost:80

URL reservation delete failed , Error: 87
The parameter is incorrect.
Run Code Online (Sandbox Code Playgroud)

当我执行 'netsh http show urlacl' 时,我看到以下规则:

  Reserved URL            : http://localhost:80/
      User: myself
          Listen: Yes
          Delegate: No
          SDDL: D:(A;;GX;;;S-1-5-21-124525095-708259637-1543119021-1467807)
Run Code Online (Sandbox Code Playgroud)

问题的原因是什么?

Art*_*ode 15

你缺少一个尾部斜杠。而是使用:

netsh http delete urlacl url=http://localhost:80/
Run Code Online (Sandbox Code Playgroud)

当您netsh show urlacl在同一 URL 上使用时,保留的 URL 条目有一个尾部斜杠。这是您应该用于任何 urlacl 操作的 URL。