Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cfg = [xml](gc C:\Users\shish\source\web.config.txt)
- $cfg.configuration.connectionStrings.add|%{
- $_.connectionString = $_.connectionString -replace "currentValue", "newValue";
- $_.name = $_.name -replace "currentValue", "newValue";
- }
- $cfg.Save("C:\Users\shish\source\web.config.txt");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement