【发布时间】:2015-03-26 12:31:17
【问题描述】:
从下面的 xml sn-p 我想只删除“ConnectionString”标签
<appSettings>父标签:
<configuration>
<appSettings>
<add key="ConnectionString" value=" Data Source=192.168.1.19;Network Library=DBMSSOCN;Initial Catalog=Demo;Persist Security Info=True; User ID=sa;Password=powershell;Application Name=web;Connect Timeout=200; pooling='true'; Max Pool Size=200;"/>
<add key="ConnectionString1" value=" Data Source=192.168.1.19;Network Library=DBMSSOCN;Initial Catalog=Demo;Persist Security Info=True; User ID=sa;Password=powershell;Application Name=web;Connect Timeout=200; pooling='true'; Max Pool Size=200;"/>
<add key="ConnectionString2" value=" Data Source=192.168.1.19;Network Library=DBMSSOCN;Initial Catalog=Demo;Persist Security Info=True; User ID=sa;Password=powershell;Application Name=web;Connect Timeout=200; pooling='true'; Max Pool Size=200;"/>
</appSettings>
</configuration>
请告诉我如何使用 powershell 执行此操作?
【问题讨论】:
标签: xml powershell iis powershell-ise cmdlet