Yst*_*ter 3 powershell config reportserver
如何使用PowerShell更新或更改RSReportServer.config文件?
我想将IsTagManagerEnabled标记中Service标记内的值从True更改为False。
非常感谢。
根据http://msdn.microsoft.com/zh-cn/library/bb630448.aspx,您的配置文件很可能在其中, c:\Program Files\Microsoft SQL Server\MSSQL.n\Reporting Services\ReportServer\但请更新以下内容以使其适合您的系统。并在执行其他任何操作之前对文件进行备份。
[xml]$config = gc "c:\Program Files\Microsoft SQL Server\MSSQL.n\Reporting Services\ReportServer\RSReportServer.config"
$config.SelectSingleNode("//IsReportManagerEnabled").InnerText = "False";
$config.save("c:\Program Files\Microsoft SQL Server\MSSQL.n\Reporting Services\ReportServer\RSReportServer.config")
Run Code Online (Sandbox Code Playgroud)
您可能需要重新启动ReportServer服务才能生效。
| 归档时间: |
|
| 查看次数: |
1433 次 |
| 最近记录: |