Netsh删除特定端口的所有urlacl保留

问题描述 投票:4回答:1

有没有办法删除特定端口的每个urlacl保留。

我的意思是这样的事情是可能的(客户保管):

netsh http add urlacl url=http://localhost:55521/ user="everyone"

netsh http add urlacl url=http://+:55521/ user="everyone"

现在我想删除端口55521的每个保留,这可以是任何IP保管!

通过我在带有nancy self host的c#应用程序中执行此操作的方式。

c# nancy self-hosting netsh
1个回答
1
投票

显示网址:

netsh http show urlacl

删除网址:

netsh http delete urlacl url=http://localhost:55521/
© www.soinside.com 2019 - 2024. All rights reserved.