I need to try to update a web.config file to change the IP address only of the web.config I have included the section of code Im looking at for powershell to script the change.
<connectionStrings>
<add name="connectionString" connectionString="provider=SQLOLEDB;Server=192.168.1.100;database=sample;Trusted_Connection=Yes" providerName="System.Data.OleDb" />
<add name="sqlConnectionString" connectionString="Data Source=192.168.1.100;Initial Catalog=sample;Trusted_Connection=Yes" providerName="System.Data.SqlClient" />
</connectionStrings>
I would like a very simple solution to this just update the ServerIP address.
Anyone know an easy way to do this with PowerShell.