Sharepoint 2013:Powershell脚本,用于将web.config设置从text / xml文件更改为配置文件 [英] Sharepoint 2013 : Powershell script for to change web.config settings from text/xml file to config file

查看:157
本文介绍了Sharepoint 2013:Powershell脚本,用于将web.config设置从text / xml文件更改为配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要PowerShell上的帮助才能更改web.config文件设置(appsettings和connectionstring)。


要求是我在文本文件中的数据如下所示,我需要在Web配置中添加/更新(SharePoint 2013)。


文本/ xml文件数据:


< ; connectionStrings>

< add name =" new target"的connectionString = QUOT; newCSvalue" />
$
< / connectionStrings>



提前致谢...

解决方案

您好


请点击以下链接。


http://get-powershell.com/post /2008/07/29/Editing-WebConfig-Files-with-PowerShell.aspx


Hi,

I need help on powershell to change web.config file settings(appsettings and connectionstring).

requirement is i data in text file as below, i need add/update in web config(SharePoint 2013).

Text/xml file data:

<connectionStrings>
<add name="new target" connectionString="newCSvalue" />
</connectionStrings>

Thanks in advance...

解决方案

Hi

Please follow below link.

http://get-powershell.com/post/2008/07/29/Editing-WebConfig-Files-with-PowerShell.aspx


这篇关于Sharepoint 2013:Powershell脚本,用于将web.config设置从text / xml文件更改为配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆