Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Powershell script to modify config file

$
0
0
Hello,I have posted many questions about modifying config files using Powershell, since I am relatively new to PS. I finally got the darn thing working, but now my boss gave me a config file that has a different format to modify. [i][b]<?xml version="1.0" encoding="utf-8"?> <properties name="Template" version="13.4"> <property name="Reports.DMV.TNSEntry" value="Data Source=DEV;Unicode=True" protected="true" /> <property name="Reports.DMW.UserID" value="ABCD" protected="true" /> <property name="Reports.DMV.Password" value="9999" protected="true" /> <property name="Reports.OCD.TNSEntry" value="Data Source=DEVSTAGE;Unicode=True" protected="true" /> <property name="Reports.OCD.UserID" value="WWNA" protected="true" /> </properties>[/b][/i]I would like to be able to modify the Data Sources of this XML file. Does anyone have a script handy that accomplishes this?Thank you all in advance!

Viewing all articles
Browse latest Browse all 467

Trending Articles