如何在Powershell中删除保留的URL?


1

如何在Powershell中删除保留的URL?

我试图通过使用powershell删除所有保留的报告相关URL,因为没有正确配置Report Server Webservice,我需要从头开始重置。

但是我无法完成它。帮我检查错误告诉我如何解决它。

在此输入图像描述

Answers:


1

如何使用删除保留的URL netsh

您没有使用Powershell,而是netshcmdshell 中使用。

此外,命令的语法不正确。

url=以前需要有一个http...

F:\test>netsh http delete urlacl /?

Usage: delete urlacl [url=]<string>

Parameters:

    Tag     Value
    url  -  The fully qualified URL to be deleted.

Remarks: This command deletes a reserved URL.

Examples:

         delete urlacl url=http://+:80/MyUri
         delete urlacl url=http://www.contoso.com:80/MyUri
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.