Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Powershell   (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">
 
Page view tracker