Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$connectionString = "Data Source=shaappt0001;Initial Catalog=Bpm;Persist Security Info=true;User ID=sa;PWD=Passw0rd;Packet Size=4096;" providerName="System.Data.SqlClient"
$webConfigPath = "%teamcity.build.workingDir%\Bpm\web.config"
$xml = [xml](get-content $webConfigPath)
$root = $xml.get_DocumentElement();
$root.connectionStrings.add.connectionString = $connectionString
$xml.Save($webConfigPath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment