Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » config   (RSS)

Automating config file changes : Part 4 – Adding a new element to an XML file

After updating and deleting element from an XML config file, lets see how to add new elements at the desired position in an XML file. We will again take the same web.config file , which we took in the first example and save it at C:\MyApplication <?xml

Automating config file changes : Part 3 – Deleting an element from an XML file

This post talks about removing an existing XML element from the config file. Consider a scenario where we have the following web.config file saved at location C:\MyApplication <?xml version="1.0"?> <configuration>   <configSections>

Automating config file changes : Part 2 – modifying already existing config keys

This post contains the Powershell script to modify already existing config key values in a config file. A sample web.config file is given below <?xml version="1.0"?> <configuration> <system.web> <customErrors mode="On" defaultRedirect="Error.htm">

Automating config file changes : Part 1 – Installing Microsoft Windows Powershell

In the next few posts, I am going to write about ways to automate configuration file updates using Powershell. The method described in the following posts can be used to update any xml file, including web.config files by passing the required values and
 
Page view tracker