Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $cfg = [xml](gc C:\Users\shish\source\web.config.txt)
  2. $cfg.configuration.connectionStrings.add|%{
  3. $_.connectionString = $_.connectionString -replace "currentValue", "newValue";
  4. $_.name = $_.name -replace "currentValue", "newValue";
  5. }
  6. $cfg.Save("C:\Users\shish\source\web.config.txt");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement